08-09-2018, 05:08 AM
Hi all, I am trying to write a simple CAS program, to get my feet wet and eventually write a fairly complicated Laplace transform/ matrix / resolvent thing.
My program is:
#cas
QQQ(A):=
BEGIN
RETURN CAS.factor(A);
END
#end
In the CAS screen, when I enter "QQQ(x^2-1)" it yields "factor(A)" but I want "(x-1)*(x+1)"
Could someone tell me what I am doing wrong, and maybe guide me to some documentation? I really have tried googling and RTFMing, but I have no idea.[/font]
Thanks!
My program is:
#cas
QQQ(A):=
BEGIN
RETURN CAS.factor(A);
END
#end
In the CAS screen, when I enter "QQQ(x^2-1)" it yields "factor(A)" but I want "(x-1)*(x+1)"
Could someone tell me what I am doing wrong, and maybe guide me to some documentation? I really have tried googling and RTFMing, but I have no idea.[/font]
Thanks!