Does Prime support multistatement.......
10-30-2015, 11:31 PM (This post was last modified: 11-02-2015 01:40 AM by toshk.)
Post: #7
 toshk Member Posts: 195 Joined: Feb 2015
RE: Does Prime support multistatement.......
(10-30-2015 08:25 PM)Han Wrote:  The Prime equivalent of ":" is the semicolon ";" (assuming default settings). You can place an entire program on the command line on the HP Prime using ; to separate commands if you were so inclined.

For example:

X:=0; Y:=0; ENTER (this initializes X and Y to 0)

X:=X+1; Y:=2*X+Y+1; ENTER

Now repeatedly press ENTER to continue iterating both X and Y. Another way to store values is to use the ▶ which uses a "reversed" syntax and is similar to the Casio syntax.

x = (x^4 - 19x^3 + 145x^2 + 252)/378

So you can do:

2▶X ENTER (would be the same as X:=2 ENTER)

(X^4-19*X^3+145*X^2+252)/378▶X ENTER

(Now keep pressing ENTER to see more iterations)

thanks .....Han. it did work...
 « Next Oldest | Next Newest »

 Messages In This Thread Does Prime support multistatement....... - toshk - 10-29-2015, 10:21 PM RE: Does Prime support multistatement....... - cyrille de brébisson - 10-30-2015, 06:26 AM RE: Does Prime support multistatement....... - Didier Lachieze - 10-30-2015, 04:11 PM RE: Does Prime support multistatement....... - Han - 10-30-2015, 05:03 PM RE: Does Prime support multistatement....... - toshk - 10-30-2015, 07:45 PM RE: Does Prime support multistatement....... - Han - 10-30-2015, 08:25 PM RE: Does Prime support multistatement....... - toshk - 10-30-2015 11:31 PM RE: Does Prime support multistatement....... - retoa - 11-01-2015, 10:03 PM

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