Post Reply 
Solve function giving [ ] result
05-06-2014, 01:07 AM
Post: #1
Solve function giving [ ] result
Hello,

When trying to solve this equation i get a result of [], anyone else getting a similar result or perhaps can see an error in my method?

Trying to solve for x here:
348.4=269.65+.5*(315-269.65)+((x/26000)^2 + .25*(315-269.65)^2)^.5

I use the solve function:

solve('348.4=269.65+.5*(315-269.65)+((x/26000)^2 + .25*(315-269.65)^2)^.5', x)

and i get this result:
[]

Thanks
Find all posts by this user
Quote this message in a reply
05-06-2014, 06:52 AM
Post: #2
RE: Solve function giving [ ] result
If you run solve on an equation with approx data, then fsolve is called instead. Since no interval or guess is provided, the solver tries bisection in tan(-1.57)..tan(1.57), but unfortunately the solutions are outside. You can either give a bisection interval and call fsolve, or run solve(exact(your_equation))
Find all posts by this user
Quote this message in a reply
05-06-2014, 12:12 PM (This post was last modified: 05-06-2014 12:17 PM by Rich.)
Post: #3
RE: Solve function giving [ ] result
Using fsolve with an estimated starting point worked.

Thanks!
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)