Hmm, good point. Of course, then I might as well do what the original worksheet I found did anyway... but still worth having as an option.
kcrisman (Apr 30 '12)| See this worksheet on sagenb.org. Notice that they have to define a Python function in order for this to work. I could not get this to work with a Sage callable function like Now, likely either
But I'd like confirmation of this. It's really annoying that one has to use a Python function to do this. |
| This code with a lambda function works. As you mentioned in the comment, it is still not what you want. |
| What's about assigning a python function to a sage callable function? Hmm, good point. Of course, then I might as well do what the original worksheet I found did anyway... but still worth having as an option. kcrisman (Apr 30 '12) |
| The best I could come up with was However, I was still getting errors. It's odd that this doesn't work: I was hoping to avoid using the symbolic sum like this, because it will likely invoke Maxima, but I guess this is more or less what I was looking for. But you are right that I can't get it to work. kcrisman (Apr 25 '12) |
Asked: Apr 24 '12
Seen: 127 times
Last updated: Apr 30 '12
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.
Yes sage callable is giving an error, but a lambda function works well too.
Shashank (Apr 24 '12)Hmm, I couldn't get a lambda to work, at least not in conjunction with a callable. Can you post that as an answer? (Though I won't accept it, since I want to know how to jerry-rig the callable, I'd upvote it.)
kcrisman (Apr 24 '12)