Help solving an equation iteratively

Help solving an equation iteratively - Mensajes

#1 Publicado: 8/9/2017 10:26:49
drewbagel423

drewbagel423

0 me gusta en 4 mensajes.

Grupo: User

I have the equation 0.005*N^-0.12 + 0.565*N^-0.46 = 0.010 that I am trying to solve for N. I know the answer is ~9500 but I do not know how to solve it using SMath Studio. I tried "solve" but I get the "No real roots" error.
#2 Publicado: 8/9/2017 11:27:51
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

I have the equation 0.005*N^-0.12 0.565*N^-0.46 = 0.010 that I am trying to solve for N. I know the answer is ~9500 but I do not know how to solve it using SMath Studio. I tried "solve" but I get the "No real roots" error.



As simple as that: plot first to check if there is intersection
between the two functions. You don't solve for a constant, you
solve for a constant defined as a function. Next, guesstimate
for bracketing the solve block ... done.

Cheers collab.

Solve Unknown.PNG

#3 Publicado: 8/9/2017 12:04:08
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

... your project from iterative Dichotomy

Solve Dichotomy.sm (9,19 KiB) descargado 1225 vez(es).
#4 Publicado: 8/9/2017 12:27:18
drewbagel423

drewbagel423

0 me gusta en 4 mensajes.

Grupo: User

Wrote

Wrote

I have the equation 0.005*N^-0.12 0.565*N^-0.46 = 0.010 that I am trying to solve for N. I know the answer is ~9500 but I do not know how to solve it using SMath Studio. I tried "solve" but I get the "No real roots" error.



As simple as that: plot first to check if there is intersection
between the two functions. You don't solve for a constant, you
solve for a constant defined as a function. Next, guesstimate
for bracketing the solve block ... done.

Cheers collab.

Solve Unknown.PNG



Works perfectly. Thanks!
#5 Publicado: 8/9/2017 14:33:46
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

Wrote

I tried "solve" but I get the "No real roots" error.


probably you have used solve(2) (function with 2 arguments) that is driven by the global parameters (tools > options > calculation > roots (range)) and is designed mainly for solutions on the fly.

use instead solve(4), giving an adequate range (f.e. by plotting the function, as mentioned above by Jean)

2017-09-08 19_29_43-SMath Studio - [Page1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • Nuevos mensajes
  • Sin mensajes nuevos