Post Reply 
Little explorations with HP calculators (no Prime)
03-31-2017, 09:19 PM (This post was last modified: 03-31-2017 09:21 PM by Han.)
Post: #94
RE: Little explorations with the HP calculators
Since you are already placing comments in your code, why not leave the code in RPL form and add an appropriate comment. For example,

Code:

        IF
          curProbV '\<-mVarProb(tmpV, \<-colSumProb)' EVAL \<=
        THEN

could be written as

Code:

        @ check to see if curProbV <= mVarProb(tmpV,colSumProb)
        IF
          curProbV tmpV \<-colSumProb \<-mVarProb \<=
        THEN

You gain speed without having to over-compromise on legibility. By the way, I am not checking code; I am merely assuming mVarProb is a function; modify accordingly to fit your needs.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Little explorations with the HP calculators - Han - 03-31-2017 09:19 PM



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