: I'm just currious if someone out there can help me. I am interested in writing a program to calculate the following Matrix:
: [cos x -sin x 0
: sin x cos x 0
: 0 0 1]
: I would like to be able to enter the angle for x, and have the good ole hp do the rest. I know this is probably pretty easy, but I'm not that experienced with the Hp programing language!
: I would read the book, but with my course load this semester, I really dont have the time to learn a new language. If someone wouldnt mind, could you lend me a hand??? Thanks a lot for your time, its much appreciated!!
: -gerry
Try this, it'll work:
<< -> X
<<
X COS X SIN NEG 0
X SIN X COS 0
0 0 1
[ 3 3 ] ->ARRY
DET
>>
>>
Type this in and store it in a variable (call it WRO, for example).
Then suppose you want to calculate it for X=4, you type:
4 WRO
Differential equations class, right? Wish I had the HP when I took it!