Post Reply 
CAS.numer; denom; lcoeff; degree... ??!! [It's OK NOW ! :o)]
02-16-2015, 07:53 PM
Post: #3
RE: CAS.numer; denom; lcoeff; degree... ??!!
(02-14-2015 07:35 PM)dg1969 Wrote:  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);

Tried with the emulator, and everything works properly here for me. As for

CAS.coeff("x^2+2,2") =>0

are you sure you didn't mean

CAS.coeff("x^2+2","2")

Notice the quotes around each argument (the second set of quotes is unnecessary since the 2 is not symbolic)

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: CAS.numer; denom; lcoeff; degree... ??!! - Han - 02-16-2015 07:53 PM



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