Ask Your Question

Revision history [back]

The parameter locals should be a dictionary not the set {False}:

sage: var('y')
y
sage: f = sage_eval(str(input("What is the function:" )), locals = {'y': y})
What is the function:cos(y)
sage: integral(f,y,0,16)
sin(16)