Post Reply 
Solver inside of HP basic
02-25-2015, 01:41 PM (This post was last modified: 02-25-2015 01:53 PM by Angus.)
Post: #2
RE: Solver inside of HP basic
Hi,

Han has written a pretty good article about cas programming http://www.hpmuseum.org/forum/thread-3149.html. You might want to take a look at that.
I am sure e is a reserved name so you won't be able to use it and there are at least a lot of typos in your code.
Plus I am not sure if using capital Variables is advised. I never know if they will be treated symbolically or if their numerical value from home takes effect. For a local variable I think that should not happen, but I try to avoid single capital variables. I just can't get used to the home/cas thingy in the calculator.

To make it short: a cas function would do it nicely and very straightforward:
#cas
kepler(mass):=
BEGIN
local vale:=0.15;

ret_val:= solve(valE-sin(vale)-mass=0,valE);
return ret_val;
END;
#end

I left out angle. I don't know what it does.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Solver inside of HP basic - Powersoft - 02-25-2015, 01:06 PM
RE: Solver inside of HP basic - Angus - 02-25-2015 01:41 PM
RE: Solver inside of HP basic - Powersoft - 02-26-2015, 02:59 PM
RE: Solver inside of HP basic - Powersoft - 03-06-2015, 04:18 PM



User(s) browsing this thread: 1 Guest(s)