SMath Studio Forum
»
SMath Studio
»
Questions
»
Help solving an equation iteratively
Rank: Newbie
Groups: Registered
Joined: 12/06/2014(UTC) Posts: 4 Location: NJ
|
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.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: drewbagel423 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.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
... your project from iterative Dichotomy Solve Dichotomy.sm (10kb) downloaded 29 time(s).
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 12/06/2014(UTC) Posts: 4 Location: NJ
|
Originally Posted by: Jean Giraud Originally Posted by: drewbagel423 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. Works perfectly. Thanks!
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
Originally Posted by: drewbagel423 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) |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Help solving an equation iteratively
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.