By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,534 Members | 1,322 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,534 IT Pros & Developers. It's quick & easy.

feval similar to Matlab

P: n/a
I have to (re)write a matlab program in a language of my choice (it's for a
numerical analysis class) and it uses feval. I was wondering if there's any
python module that works similarly (to feval). It would save me a lot of
hassle. :)

Thanks for any and all help,
Wr

Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Nobody" <us*****@hotmail.com> wrote in message news:<ei*********************@twister.tampabay.rr. com>...
I have to (re)write a matlab program in a language of my choice (it's for a
numerical analysis class) and it uses feval. I was wondering if there's any
python module that works similarly (to feval). It would save me a lot of
hassle. :)

def feval(funcName, *args): .... return eval(funcName)(*args)
.... from math import *
feval('log', 256, 2)

8.0
Jul 18 '05 #2

P: n/a
On Fri, 26 Mar 2004 00:10:29 -0800, Dan Bishop wrote:
"Nobody" <us*****@hotmail.com> wrote in message news:<ei*********************@twister.tampabay.rr. com>...
I have to (re)write a matlab program in a language of my choice (it's for a
numerical analysis class) and it uses feval. I was wondering if there's any
python module that works similarly (to feval). It would save me a lot of
hassle. :)

def feval(funcName, *args): ... return eval(funcName)(*args)
... from math import *
feval('log', 256, 2)

8.0

Thank you Dan
Wr

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.