Few questions and again if statement
Post: #2
 roadrunner Senior Member Posts: 408 Joined: Jun 2015
RE: Few questions and again if statement
1. There are no tables in the prime, but check out the functions:

CHISQUARE(d,x),
NORMALD([μ, σ,] x), and
STUDENT(d,x)

2. As far as your program i think you want an if then else statement:

IF(q1<0)
THEN
q3:=p1+180;
ELSE
q3:=p1;
END;

IF(q2<0)
THEN
q4:=p2+180;
ELSE
q4:=p2;
END;

3. What you want to do with the built in matrix variables should work. Here is an example program that puts two random matrixes in M1 and M2, then calculates M3 with your formula and prints M3(3,3)

Code:
EXPORT mattest() BEGIN  M1:=randMat(3,3);  M2:=randMat(3,3);  M3:=(M2)^(-1)*M1*(M2)^(-1);  PRINT(M3(3,3));  M3; END;