online advertising
Loading [MathJax]/jax/output/HTML-CSS/jax.js

Sunday, February 7, 2016

UTM Ideals Varieties and Algorithm - Chapter 1 Section 5 Exercise 15

Problem:


Solution:

Part (a) is obvious

fGCD(f,f)=c(xa1)r1(xan)rn(xa1)r11(xan)rn1=c(xa1)(xan)=fred

Part (b) is just an application of the formula.

print "Problem 15"
f = polynomial.from_string("x^11 - x^10 + 2x^8 - 4x^7 + 3x^5 - 3x^4 + x^3 + 3x^2 - x - 1")
fd = f.derivative()
g = polynomial.polynomial_gcd(f, fd)
(q, r) = polynomial.polynomial_divide(f, g)
print q

The square free part of the polynomial is x5+x2x1

No comments:

Post a Comment