Post Reply 
(50G) Question, has anyone programmed gauss's...
09-21-2014, 04:36 PM (This post was last modified: 09-21-2014 04:38 PM by C.Ret.)
Post: #9
RE: 50G Question, has anyone programmed gauss's...
Here is a version for HP28S/C and any other old style RPL :

Code:

« DUP SIZE → LCoord s         @  LCoord list of vectors - s size of the list - keep both in stack
  « [0 0 0]                   @  Initialize summation of cross products
    1 s FOR i
       LCoord i GETI          @  Get i-th vetor and prepare to get next one vector
       ROT ROT GET            @  Rotate stack and get (i+1)-th vector
       CROSS +                @  Compute cross product and add into summation
    NEXT
    ABS 2 /                   @  Area is the halb the norm of sum
  »
»
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 50G Question, has anyone programmed gauss's... - C.Ret - 09-21-2014 04:36 PM



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