![]() |
HP Prime polynomial long division - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: HP Prime polynomial long division (/thread-254184.html) |
HP Prime polynomial long division - bluesun08 - 10-29-2013 If i calculate (x^3+x):(x^2+3) manually via polynomial long division the result is x-(2x)/(x^2+3) Re: HP Prime polynomial long division - Eddie W. Shore - 10-29-2013 Quote: In CAS mode, use partfrac. Access: Toolbox, CAS, 1. Algebra, 6. Partial Fraction Hope that helps.
Re: HP Prime polynomial long division - bluesun08 - 10-29-2013 Great, thank you!
Re: HP Prime polynomial long division - bluesun08 - 10-29-2013 A further question: What is the difference between partfrac and cpartfrac?
Re: HP Prime polynomial long division - Eddie W. Shore - 10-29-2013 Quote: cpartfrac is the complex counterpart of partfrac Example:
cpartfrac((x^3+x)/(x^2+3)) returns x - 1/(x+i*sqrt(3)) - 1/(x-i*sqrt(3))
Re: HP Prime polynomial long division - bluesun08 - 10-29-2013 o.k.
Re: HP Prime polynomial long division - CR Haeger - 10-29-2013 Thanks. Does CAS Settings / Simplify need to be set to NONE or MINIMUM for this result? Appears that MAXIMUM will show the rational being "recomposed" as x^3+x : x^2+3.
Best
Re: HP Prime polynomial long division - Tim Wessman - 10-29-2013 Yes, it will recombine them in your version unforuntately. Note that this will all work much better in the future. There is a reason we did not put it to anything but "none" by default in the initial release. :-)
TW
Re: HP Prime polynomial long division - Michael de Estrada - 10-29-2013 Hi Tim, A related issue. I want to expand and then recombine a symbolic polynomial to group the coefficients by powers, i.e. (a-x)*(b-x) ---> a*b - (a+b)*x + x^2 If I enter this expression in CAS with simplify set to maximum in the settings the result I get is: a*b - a*x - b*x + x^2 where the coefficients are not grouped for the power of x^1.
Is there some way to do this ?
Re: HP Prime polynomial long division - Wes Loewer - 10-29-2013 Quote: To see the results of polynomial long division, propfrac is more what he was looking for.
partfrac(((x^3+2*x²+3*x+4)/(x²-9))) returns the partial fractions while
propfrac(((x^3+2*x²+3*x+4)/(x²-9))) returns the proper fraction:
-wes
Re: HP Prime polynomial long division - Michael de Estrada - 10-29-2013 I found a solution in the CAS function "symb2poly".
symb2poly ((a-x)*(b-x)) ---> [1 -a-b a*b]
Re: HP Prime polynomial long division - CompSystems - 10-29-2013 real collect
Poly:= (a-x)*(b-x)
sum( coeff( Poly, Var ) .* seq( Var^k, k, degree( Poly, Var ), 0, 1 )
Re: HP Prime polynomial long division - bluesun08 - 10-29-2013 "propfrac" is exactly the command i need. It's too bad that "propfrac" is not in CAS-Menü.
Re: HP Prime polynomial long division - parisse - 10-30-2013 quo, rem and quorem are the CAS instructions to perform polynomial division.
|