First time here? Check out the FAQ!

Ask Your Question
0

is_polynomial with symbolic coefficients: bug ?

asked 11 years ago

alessandro gravatar image

sage: s, a, b= var('s a b')

sage: (1/s^2 + s).is_polynomial(s)

False

sage: (a/s^2 + b*s).is_polynomial(s)

True

Should the second call of is_polynomial not return False as in the first case ?

Is this a bug ?

Who and howto report ?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 11 years ago

Luca gravatar image

This is a bug. Thanks for reporting it. It is ticket #15304 now.

Preview: (hide)
link
0

answered 11 years ago

alessandro gravatar image

(s/(s^3+2*s) + 3).is_polynomial(s)

returns True

Check this case also...

Thanks.

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

Stats

Asked: 11 years ago

Seen: 386 times

Last updated: Oct 18 '13