D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] AWK multipass



Neil Williams wrote:

On Sunday 01 Feb 2004 11:57 pm, Andrew Rogers wrote:


Now I have different problem, awk doesn't have an erfc() function. I
need to process a lot of data and produce graphs, sometimes this
involves mathematical functions like erfc(). Maybe I'm trying to use awk
beyond its intended purpose. I have used C and C++ in the past but I
want to use a script instead. Perl seems to be a solution at the moment,
but I still haven't found an erfc() function. I need to learn about Perl
modules don't I?



http://search.cpan.org/~rkobes/Math-Cephes-0.41/lib/Math/Cephes.pod http://search.cpan.org/~dslewart/Math-Libm-1.00/Libm.pm

There always seems to be a Perl module for the job.



I tried the Libm module above but got the following error:

Can't locate auto/Math/Libm/autosplit.ix in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/5.6.1/AutoLoader.pm line 146.
at /usr/lib/perl5/5.6.1/Math/Libm.pm line 10


As a Perl beginner I have no clue how to deal with the above so I found another module at

http://home.online.no/~pjacklam/perl/modules/lib/Math/SpecFun/Erf.pm

which worked.

Regards
Andrew


-- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.



Lynx friendly