From 4f091ceb34234ee48725f40cfcff39d313f918e4 Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Thu, 28 May 2020 10:09:54 -0500 Subject: [PATCH] all ready to release --- Changes | 4 ++-- MANIFEST | 2 +- README | 30 +++++++++++++++++++++--------- lib/Math/Giac.pm | 7 +++++-- 4 files changed, 29 insertions(+), 14 deletions(-) diff --git a/Changes b/Changes index 84d20fe..0ece17b 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,5 @@ Revision history for Math-Giac -0.01 Date/time - First version, released on an unsuspecting world. +0.0.1 2020-05-28/10:00 + - Initial release. diff --git a/MANIFEST b/MANIFEST index 6c38a67..2f90b39 100644 --- a/MANIFEST +++ b/MANIFEST @@ -8,4 +8,4 @@ t/manifest.t t/pod-coverage.t t/pod.t t/giac.t -README.md + diff --git a/README b/README index 65beadf..598a7fc 100644 --- a/README +++ b/README @@ -1,16 +1,25 @@ Math-Giac -The README is used to introduce the module and provide instructions on -how to install the module, any machine dependencies it may have (for -example C compilers and installed libraries) and any other information -that should be provided before the module is installed. +This implements a interface to giac, a CAS(Computer Algebra System) -A README file is required for CPAN modules since CPAN extracts the README -file from a module distribution so that people browsing the archive -can use it to get an idea of the module's uses. It is usually a good idea -to provide version information here so that people can decide whether -fixes for the module are worth downloading. + use Math::Giac; + my $giac; + eval( { + $giac=$Math::Giac->new; + } ); + if ( $@ ){ + die("Failed to locate the giac binary"); + } + + my $results=$giac->run('sin(x)+cos(pi)-3'); + print $results."\n"; + + $results=$giac->run('mathml(sin(x)+cos(pi)-3)'); + print $results."\n"; + + $giac->set_vars({ A=>2 }); + my $results=$giac->run('sin(A)+cos(pi)-3'); INSTALLATION @@ -42,6 +51,9 @@ You can also look for information at: Search CPAN https://metacpan.org/release/Math-Giac + Repository + https://gitea.eesdp.org/vvelox/Math-Giac + LICENSE AND COPYRIGHT diff --git a/lib/Math/Giac.pm b/lib/Math/Giac.pm index 3f3c22d..554c4e9 100644 --- a/lib/Math/Giac.pm +++ b/lib/Math/Giac.pm @@ -7,7 +7,7 @@ use File::Temp; =head1 NAME -Math::Giac - A perl interface to giac. +Math::Giac - A perl interface to giac, a CAS(Computer Algebra System) =head1 VERSION @@ -166,7 +166,6 @@ sub vars_clear { delete( $self->{vars} ); - $self->{vars} = {}; return 1; @@ -254,6 +253,10 @@ L L +=item * Repository + +L + =back