First time here? Check out the FAQ!
answered 2016-03-20 02:57:03 +0100
When you write f(x) = cos(x), you define a symbolic expression. If you want to define a Python function, just do
f(x) = cos(x)
sage: f = lambda x: 1