Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try the .variables() method for an expression:

var('x,c')
y(x)=-3/(x^3 + 3*c + 3*x)
print y.variables()
c in y.variables()

http://aleph.sagemath.org/?z=eJwrSyzSUK_QSVbX5KrUqNC01TXW16iIM1bQVjDWSgaTFZpcBUWZeSUKlXpliUWZiUk5qcUamlzJCpl5qEIAEvwWCg%3D%3D

Try the .variables() method for an expression:

var('x,c')
y(x)=-3/(x^3 + 3*c + 3*x)
print y.variables()
c in y.variables()

http://aleph.sagemath.org/?z=eJwrSyzSUK_QSVbX5KrUqNC01TXW16iIM1bQVjDWSgaTFZpcBUWZeSUKlXpliUWZiUk5qcUamlzJCpl5qEIAEvwWCg%3D%3Dhttp://aleph.sagemath.org/?q=aefb061f-d758-499c-b4b3-b209efbf6240