Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline stefanodel  
#1 Posted : 11 June 2010 02:09:29(UTC)
stefanodel

Rank: Newbie

Groups: Registered
Joined: 02/06/2010(UTC)
Posts: 6
Man
Italy
Location: Italy

Was thanked: 1 time(s) in 1 post(s)
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

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline maweilian  
#2 Posted : 11 June 2010 04:09:22(UTC)
maweilian


Rank: Advanced Member

Groups: Registered
Joined: 09/01/2010(UTC)
Posts: 102
Man
United States
Location: Oregon, USA

Was thanked: 5 time(s) in 5 post(s)
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.Biggrinerisive: Maybe someday.

Edited by user 11 June 2010 04:13:48(UTC)  | Reason: Not specified

Will Massie
Mechanical Engineer
Oregon, USA
Offline stefanodel  
#3 Posted : 11 June 2010 23:55:20(UTC)
stefanodel

Rank: Newbie

Groups: Registered
Joined: 02/06/2010(UTC)
Posts: 6
Man
Italy
Location: Italy

Was thanked: 1 time(s) in 1 post(s)
Thank you Maweilian,
before posting my question I read only this post http://en.smath.info/for....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
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.