Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A function being an input

I have the following code and I am trying to get an output, and I keep getting an error y is not defined. Could you please help?

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