|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|