Math::SymbolicX::Complex

Complex number support for the Math::Symbolic parser
Download

Math::SymbolicX::Complex Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Steffen Muller
  • Publisher web site:
  • http://search.cpan.org/~smueller/

Math::SymbolicX::Complex Tags


Math::SymbolicX::Complex Description

Complex number support for the Math::Symbolic parser Math::SymbolicX::Complex is a Perl module that adds complex number support to Math::Symbolic. It does so by extending the parser of the Math::Symbolic module (that is, the one stored in $Math::Symbolic::Parser) with certain special functions that create complex constants. (Math::Symbolic::Variable objects have been able to contain complex number objects since the very beginning.)SYNOPSIS use Math::Symbolic qw/parse_from_string/; use Math::SymbolicX::Complex; my $formula = parse_from_string('3 * complex(3,2)^2 + polar(1, pi/2)'); print $formula->value(); # prints '14.9999999997949+37i' # (blame the inaccuracy on the floating point representation of "pi") Requirements: · Perl


Math::SymbolicX::Complex Related Software