Implements a interface to giac for Perl.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.3 KiB

12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
  1. Math-Giac
  2. This implements a interface to giac, a CAS(Computer Algebra System)
  3. use Math::Giac;
  4. my $giac;
  5. eval( {
  6. $giac=$Math::Giac->new;
  7. } );
  8. if ( $@ ){
  9. die("Failed to locate the giac binary");
  10. }
  11. my $results=$giac->run('sin(x)+cos(pi)-3');
  12. print $results."\n";
  13. $results=$giac->run('mathml(sin(x)+cos(pi)-3)');
  14. print $results."\n";
  15. $giac->set_vars({ A=>2 });
  16. my $results=$giac->run('sin(A)+cos(pi)-3');
  17. INSTALLATION
  18. To install this module, run the following commands:
  19. perl Makefile.PL
  20. make
  21. make test
  22. make install
  23. SUPPORT AND DOCUMENTATION
  24. After installing, you can find documentation for this module with the
  25. perldoc command.
  26. perldoc Math::Giac
  27. You can also look for information at:
  28. RT, CPAN's request tracker (report bugs here)
  29. https://rt.cpan.org/NoAuth/Bugs.html?Dist=Math-Giac
  30. AnnoCPAN, Annotated CPAN documentation
  31. http://annocpan.org/dist/Math-Giac
  32. CPAN Ratings
  33. https://cpanratings.perl.org/d/Math-Giac
  34. Search CPAN
  35. https://metacpan.org/release/Math-Giac
  36. Repository
  37. https://gitea.eesdp.org/vvelox/Math-Giac
  38. LICENSE AND COPYRIGHT
  39. This software is Copyright (c) 2020 by Zane C. Bowers-HAdley.
  40. This is free software, licensed under:
  41. The Artistic License 2.0 (GPL Compatible)