[SciPy-User] Use of numpy functions instead builtins

Florian Lindner mailinglists@xgm...
Sat Apr 3 05:02:40 CDT 2010


Hello,
I've code that have a lot longer formulas like this on:

tan_theta = ( 2 * (1/tan(sa))*(Ma**2*sin(sa)**2-1)) / ( 2+Ma**2 * (self.f_prop.kappa+1 - 2 * sin(sa)**2) )

all variables are scalars so it works fine with the stuff I get from the math package. Since I"m using scipy anyway in my app I wonder if there is any advantage using the numpy math functions (sin, cos, ..., exp, power). Is there any advantage using them over the python bultins?

Thanks,

Florian 


More information about the SciPy-User mailing list