Ask Your Question

Revision history [back]

The following code works:

gp.eval("square(x)=x^2")
@interact
def _(x=2):
    print(gp.function_call("square",[x]).sage())