[sage-support] Question regarding speeding up of code

2007-12-11 Thread Rishikesh
I have couple of versions of computing the same function below f is a polynomial. g is function which returns the same value as f for given number. g is 10 times faster. Can it be made closer? See code below Rishi {{{id=133| var('x') f=x^24+34*x^12+45*x^3+9*x^18 +34*x^10+ 32*x^21 def g(y):

[sage-support] Pickling objects in Notebook

2007-10-25 Thread Rishikesh
I want to pickle an object in sage notebook. It took me several hours to create the object. When I run the python commands for pickling, it creates a file directory $SAGE_HOME/notebook/worksheet/1/cells/94 Question: How can I use the python's pickling feature from the notebook? Rishi --~--~