Re: HP Prime Things I can't figure out how to do Message #3 Posted by Han on 10 Oct 2013, 12:17 p.m., in response to message #1 by BruceTTT
Quote:
I'd appreciate comments on a few things I can't figure out how to do on the Prime that were very easy on the HP48/49:
1) How do I use STO> from within RPN mode?
2) How do I quickly create a function that will take items off the stack as inputs? For example, I'm trying to use DEFINE to accept a,b,c off the stack and output both solutions of a quadratic.
3) In a related question, how do I use stack values from within programs? I know I can use INPUT, but I'd rather use previous results from the stack as inputs.
This is a great calculator, I hope that RPN gets better support in a future release.
Thanks for the help.
1. Use the single quote delimeter -- [Shift] [()] -- to specify a variable name. So typing something like:
45 'MYVAR' STO
They key-press for STO is [Shift] [EEX]
2. Either write a program, or create a CAS program. Here's how to make it a program
[Shift][1] to open the program editor, and create a new program (call it QUADSOL)
EXPORT QUADSOL(a,b,c)
BEGIN
LOCAL d;
d:=(b^2-4*a*c)^(1/2);
RETURN({(-b+d)/(2*a), (-b-d)/(2*a)});
END;
Use: QUADSOL(1,2,1) produces {-1,-1}
3. For now, programming is limited to HPPPL (HP Prime Programming Language) aka HP Basic. Hopefully HP will add RPN programming.
|