Keep It Simple, Stupid | |
PerlMonks |
Re: How can I import previously created math functions?by ariels (Curate) |
on Sep 11, 2001 at 14:15 UTC ( [id://111702]=note: print w/replies, xml ) | Need Help?? |
The amazing Inline module offers help here, too. Not all <math.h> functions are available in Perl (even if you use POSIX;).
Here's how to print some erf() values, for instance (a function almost certainly available in your maths library):
You can of course write it into your modules, and use it to access you own libraries. Other C wrapping options are XS (of course) and Swig.
In Section
Seekers of Perl Wisdom
|
|