Ask Your Question
0

Define the polynomial ring Q[c][x].Find the c values where x2+x+c+1 has a double root.

asked 5 years ago

anonymous user

Anonymous

updated 5 years ago

FrédéricC gravatar image

Sage question: Define the polynomial ring Q[c][x].Find the c values where x2+x+c+1 has a double root. Sage code I have found.

K.<c>=QQ['c']

R.<x>=K[]

f=x^2+x+c+1

f

How do I find the code for the c values where x2+x+c+1 has a double root. Also, can you give some examples so that I can construct some programming code in sage?

Preview: (hide)

Comments

Is it homework ?

tmonteil gravatar imagetmonteil ( 5 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 5 years ago

rburing gravatar image

A polynomial has a double root iff its discriminant is zero, so:

sage: f.discriminant()
-4*c - 3
sage: f.discriminant().roots(multiplicities=False)
[-3/4]
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 5 years ago

Seen: 1,123 times

Last updated: Jul 29 '19