trouble with solve

trouble with solve - Messages

#1 Posted: 6/10/2010 7:09:29 PM
Stefano Delfiore

Stefano Delfiore

1 likes in 6 posts.

Group: User

I desire to solve this:

c:12-1,23*(1+x/2)
solve(c;x)=17,512195

I get the value of x, but if I write

c:12-1,23*(1+x/3)
solve(c;x)=

I get the message "no real roots" (in this case the value of x is 26,268292)

Someone can help me to understand why?

Stefano
#2 Posted: 6/10/2010 9:09:22 PM
maweilian

maweilian

5 likes in 103 posts.

Group: User

Stefano,

Try using the solve function with 4 arguments, where the third and fourth arguments are the lower and upper bounds respectively within which the root may be found. See screenshot below:



Graphing the function can help in choosing a suitable interval for the lower and upper bounds. Please see the following thread and wiki page for more info:
Solve not working
Solve function

BTW: An improved solve function would be a great plugin project for someone to work on. Maybe someday.
Will Massie Mechanical Engineer Oregon, USA
#3 Posted: 6/11/2010 4:55:20 PM
Stefano Delfiore

Stefano Delfiore

1 likes in 6 posts.

Group: User

Thank you Maweilian,
before posting my question I read only this post http://en.smath.info/forum/default.aspx?g=posts&t=434, so I supposed that the need for an interval was only for non linear equation. I read carefully the posts you linked in your answer and now I understood the behaviour of solve function.
Thank you again.

Stefano
  • New Posts New Posts
  • No New Posts No New Posts