Python speed vs csharp
Bengt Richter
bokr at oz.net
Sat Aug 2 00:31:15 EDT 2003
On 1 Aug 2003 19:08:54 -0700, sjmachin at lexicon.net (John Machin) wrote:
>bokr at oz.net (Bengt Richter) wrote in message news:<bgds3g$f95$0 at 216.39.172.122>...
>> erfcx = ( (a1 + (a2 + (a3 +
>> (a4 + a5*t)*t)*t)*t)*t ) * exp(-pow(x,2.0));
>
>Wouldn't (x*x) be better than pow(x,2.0) ?
Yup, I would think so too, but I wasn't thinking about optimizing the C ;-) I just
copied the C# from Mike's post and made it legal C ;-)
Regards,
Bengt Richter
More information about the Python-list
mailing list