I am a new member - hp35s owner
|
01-08-2014, 04:32 PM
(This post was last modified: 01-08-2014 05:15 PM by Thomas Klemm.)
Post: #13
|
|||
|
|||
RE: I am a new member - hp35s owner
(01-08-2014 05:42 AM)walter b Wrote: Cross product is in the library in flash memory (see CAT) although a little do-it-yourself program would be a good exercise Just noticed a bug in the method Vec_Magnitude: /* VAB Vector absolute value (modulus). Vector in Y,Z,T. Returns the length in X (dropping the vector). The original vector is saved in L,I,J. */ 061 ***LBL'VAB' 062 XEQ Vec_Magnitude 063 x[<->] T 064 STO J 065 DROP 066 [cmplx]STO L 067 [cmplx]DROP 068 RTN // Subroutine used by several functions. 070 Vec_Magnitude:: ENTER[^] 071 x[^2] 072 RCL Z 073 RCL[times] T 074 + 075 RCL T 076 RCL[times] T 077 + 078 [sqrt] 079 RTN Should be RCL[times] A instead. Or then use x[^2]. Test-case: \( \left \| \begin{pmatrix} 2 \\ 1 \\ 2 \end{pmatrix} \right \| = 3 \) Current result is \(\sqrt{7}\). Cheers Thomas PS: Probably a typo in the comment of VAB. Vector in Y,Z,T |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)