| 1 | initial version |
The following code works:
gp.eval("square(x)=x^2")
@interact
def _(x=2):
print(gp.function_call("square",[x]).sage())
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.