Post Reply 
CAS.numer; denom; lcoeff; degree... ??!! [It's OK NOW ! :o)]
02-14-2015, 07:35 PM (This post was last modified: 02-16-2015 08:46 PM by dg1969.)
Post: #1
CAS.numer; denom; lcoeff; degree... ??!! [It's OK NOW ! :o)]
I can't find a way to use lcoeff; degree; coeff in a home program...

Code:

CAS.numer("(2+x^2)/(1+x)") is ok => x^2+2
CAS.denom("(2+x^2)/(1+x)") is ok => x+1

but :
CAS.coeff("x^2+2,2") =>0
CAS.lcoeff("3*x^3+2*x") => 3*x^2+2 in place of 3
CAS.degree("3*x^3+2*x") => 0 !!

CAS.froot("(1+x^2)/(1-x)") =>[] !!

In my mind string inside CAS.cas_stuff("...") is the good practice ?


these code doesn't work...
Code:

f:="numer((1+x^2)/(1+x))";
num:=CAS(f);
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
CAS.numer; denom; lcoeff; degree... ??!! [It's OK NOW ! :o)] - dg1969 - 02-14-2015 07:35 PM



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