[Python-Dev] setcall (original) (raw)
Bj Raz whitequill.bj at gmail.com
Wed Oct 27 00:05:11 CEST 2010
- Previous message: [Python-Dev] __setcall__
- Next message: [Python-Dev] __setcall__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'll look into SAGE, I am still curious if there is, a way, to write this in native python, cause I'm currently plotting in Autodesk Maya, and using Python.
Sent from my iPhone
On Oct 24, 2010, at 12:51 PM, Benjamin Peterson <benjamin at python.org> wrote:
2010/10/24 Bj Raz <whitequill.bj at gmail.com>:
I was looking for a way to set a function being equal to another function: q(m+1) = q(m)+ ((-1)^m) * exp(lnanswer); I was hoping to use something like this: (q).setcall.(m+1) = (q).setcall.(m)+ ((-1)^m) * exp(lnanswer); As a work around. But I have not found the `setcall' built in being there.
Here is the code block I'm working with: indvar = 200; q = 0; lnanswer = 0; for m = 1:150 lnanswer = (3 * m) * log(indvar) - log(factorial(3 * m)) ; q(m+1) = q(m)+ ((-1)^m) * exp(lnanswer); end lnanswer q Any help would be appreciated. Please see python-list. This list is for the development of python. The SAGE math package can do something like this. -- Regards, Benjamin
- Previous message: [Python-Dev] __setcall__
- Next message: [Python-Dev] __setcall__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]