Ask Your Question
1

Error in EllipticCurve_from_cubic

asked 0 years ago

maximiliano1 gravatar image

updated 0 years ago

Max Alekseyev gravatar image

These lines of code generate a message "equation must be a polynomial"

Why?

R.<a,b,c>=QQ[]
n=4
F=a/(b+c)+b/(a+c)+c/(a+b)-n
F=F*F.denominator()
E=EllipticCurve_from_cubic(F,morphism=False)
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 0 years ago

Max Alekseyev gravatar image

That's because F*F.denominator() remains an element of the fraction field (as original F). Replace F=F*F.denominator() with F=F.numerator() and it will work.

Preview: (hide)
link

Comments

Perfect! Thank you very much!!!

maximiliano1 gravatar imagemaximiliano1 ( 0 years ago )

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: 0 years ago

Seen: 53 times

Last updated: Jan 22