Post Reply 
Support for comments /* ... */
02-26-2017, 03:39 PM (This post was last modified: 02-26-2017 03:40 PM by compsystems.)
Post: #5
RE: Support for comments /* ... */
also, if in a future firmware version, it supports comments of the type,

You could directly copy the following sequence of steps (of this forum) to the history view

PHP Code:
expr1:=x^3;
rpnStr:="";
oper:="";
partn:="";
oper:=part(expr1,0); /*returns "^" */
parts:=part(expr1); /*returns 2 */
partJ:=1;
expr2:=part(expr1,partJ); /*returns x */
partn:=string(expr2); /*returns "x" */
rpnStr:=rpnStr partn/* returns "x" */
partJ:=2;
expr2:=part(expr1,partJ); /*returns 3 */
partn:=string(expr2); /*returns "3" */
rpnStr:=rpnStr " "/*returns "x " */
rpnStr:=rpnStr partn/*returns "x 3" */
rpnStr:=rpnStr " " oper/*returns "x 3 ^"  */ 

currently I have to suppress them =(

PHP Code:
expr1:=x^3;
rpnStr:="";
oper:="";
partn:="";
oper:=part(expr1,0); 
parts:=part(expr1);
partJ:=1;
expr2:=part(expr1,partJ); 
partn:=string(expr2);
rpnStr:=rpnStr partn;
partJ:=2;
expr2:=part(expr1,partJ); 
partn:=string(expr2);
rpnStr:=rpnStr " ";
rpnStr:=rpnStr partn
rpnStr:=rpnStr " " oper

PHP Code:
expr1:=x^3rpnStr:=""oper:=""partn:=""oper:=part(expr1,0); parts:=part(expr1); partJ:=1expr2:=part(expr1,partJ); partn:=string(expr2); rpnStr:=rpnStr partnpartJ:=2expr2:=part(expr1,partJ); partn:=string(expr2); rpnStr:=rpnStr " ";rpnStr:=rpnStr partnrpnStr:=rpnStr " " oper

I can not put comments between each sentence = (

[Image: hp_prime_convertToRPN_image00.png]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Support for comments /* ... */ - compsystems - 02-26-2017 03:39 PM



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