First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The following code works:

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