Solving an equation

Solving an equation - Messaggi

#1 Pubblicato: 16/04/2010 19:34:53
Oscar Campo

Oscar Campo

135 apprezzamenti in 309 post.

Gruppo: Moderator

Hi,
I'm trying to solve:
S:=157.34
b:=-0.34
N=10^6
aa:=solve(S=A*N^b,A,16000,17000)

Then, SMath give me this message: "No real roots". I found ("by hand") that the answer is A=1.69*10^4. So, what is the problem with SMath?
#2 Pubblicato: 16/04/2010 20:13:58
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: Moderator

Hello oscampo,

It seems you are wrong. This is not a nonlinear equation on A, therefore:
[MATH]A←S/{N^b}[/MATH]
[MATH]A=17251,9879[/MATH]
If you still want to use "solve", the problem is of the numerical nature and you have to plot the function and use the range as small as possible arround the solution.
Try this:
[MATH]solve(S≡A*N^b;A;17200;17300)=17251,9879[/MATH]

Regards,
Radovan

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • Nuovi post
  • Nessun nuovo post