Ask Your Question
0

is_polynomial with symbolic coefficients: bug ?

asked 2013-10-17 16:50:31 +0200

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 ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-10-18 04:54:38 +0200

Luca gravatar image

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

edit flag offensive delete link more
0

answered 2013-10-18 10:18:11 +0200

alessandro gravatar image

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

returns True

Check this case also...

Thanks.

edit flag offensive delete link more

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: 2013-10-17 16:50:31 +0200

Seen: 299 times

Last updated: Oct 18 '13