Seed values Solving non linear equations - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Seed values Solving non linear equations (/thread-11416.html) |
Seed values Solving non linear equations - John9 - 09-19-2018 03:04 AM Hello I always struggle to solve non linear equations on my HP Prime when I need to enter Seed values. For example I am trying to solve the equations I=0.02898*D^4 and 52000 = (106.4*(D/2))/I Now I cannot find a solution with the solve App unless I enter a Seed value for I and D that very close to the Solutions. Solving the two equations on Wolfram alpha works fine and... I=0.000335618 D=0.328047. Is there a way to solve non linear equations using the HP prime. I know I can just simplify it down to one equation and use the solve function but i would like to know how to solve non linear systems without having to use a seed value that is extremely close to the actual solution. RE: Seed values Solving non linear equations - roadrunner - 09-19-2018 10:06 PM Have you tried fsolve: fsolve([ii = (0.02898*d^4),52000 = 106.4*d/2/ii],[ii,d]) -road RE: Seed values Solving non linear equations - Carsen - 09-19-2018 11:28 PM Welcome the the HP Forums John9! Check out the Solve command in the Solve menu located in the CAS section of the toolbox. You can read the syntax, details, and examples on the Solve command with the [Help] key. Just highlight the command you want to learn more about in the menu and press [Help]. Observe how I write the two equations in the solve command. Notice how I use an array to combine the two equations and the two variables (i.e. The set of non-curly brackets that can be accessed via [Shift] 5). This is the way to go. I use the variable 'ii' instead of 'i' because 'i' gets translated to the imaginary number symbol. Make sure to use lowercase letters in the equation too because uppercase letters have numbers stored in them. Does my explanation make sense? Let me know how solving your equation goes. Edit: I forgot to upload the screenshot lol. RE: Seed values Solving non linear equations - Aries - 09-20-2018 09:20 AM (09-19-2018 03:04 AM)John9 Wrote: Hello I guess you have to use the numeric solver (fsolve). On the Prime you have separate symbolic and numeric solver (solve and fsolve, respectively), unlike the Nspire. Best, Aries RE: Seed values Solving non linear equations - roadrunner - 09-20-2018 05:02 PM The reason the solver app is having trouble is that there is a discontinuity at I=0. The solution is very close to 0 so it needs a starting point very close to the solution. If you change your second equation to: I = (106.4*(D/2))/52000 the discontinuity is removed and the solver app has no problem finding two solutions at [[3.35617752293e−4,0.328047427054]] and at [[0,0]] -road |