I have the following simple function 'add4' stored in a file 'foo.sage':
I can use this in sage by:
How can I change my function to a method so that I can call it using the x.add4() syntax? I still want the method to reside in an external file.
asked Nov 16 '11rtrwalker
117 ● 1 ● 4 ● 13
Asked: Nov 16 '11
Seen: 67 times
Last updated: Nov 16 '11
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.