plot(lambda x: box(x,1), (x, -3, 3))

but why does this way the execution of the function get delayed?

because lambda is a way to define a function.
This works more or less like the following :

def MyFunction(x)
    return box(x,1)


plot(MyFunction,(x,-3,3))

See for example
http://www.secnetix.de/~olli/Python/lambda_functions.hawk

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to