Solving an equation

Solving an equation - Poruke

#1 Objavljeno: 16. 4. 2010. 19:34:53
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: 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 Objavljeno: 16. 4. 2010. 20:13:58
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: 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!"
  • Novi postovi
  • Nema novih postova