Math::SymbolicX::Inline

Current version is 1.11.

Download

Distribution from this site.
CPAN site

README

Math-SymbolicX-Inline
=====================

This module is an extension to the Math::Symbolic module. A basic
familiarity with that module is required.

Math::SymbolicX::Inline allows easy creation of Perl functions from
symbolic expressions in the context of Math::Symbolic. That means
you can define arbitrary Math::Symbolic trees (including derivatives)
and let this module compile them to package subroutines. 

There are relatively few syntax elements that aren't standard in
Math::Symbolic expressions, but those that exist are easier to
explain using examples. Thus, please refer to the discussion of
a simple example below which can be found in the manual page
of the module.

Simple, contrived example:
use Math::SymbolicX::Inline <<'HERE';
myfunction = partial_derivative( sin(x) * sin(x), x )
x (:=) arg0
HERE
print myfunction(3);
# prints the derivative of sin(x)**2 evaluated at x=3


INSTALLATION

To install this module type the following:

   perl Build.PL
   ./Build
   ./Build test
   ./Build install

On platforms that don't support the "./" notation, that would be:

   perl Build.PL
   perl Build
   perl Build test
   perl Build install

If you wish, you may use the old MakeMaker style instead:

   perl Makefile.PL
   make
   make test
   make install

DEPENDENCIES

This module requires these other modules and libraries:

  Math::Symbolic (version 0.129 an higher)
  Math::Symbolic::Custom::Contains (version 0.010 an higher)
  Test::More

COPYRIGHT AND LICENCE

Copyright (C) 2005-2006 by Steffen Müller

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.6 or,
at your option, any later version of Perl 5 you may have available.


	

Documentation

Math::SymbolicX::Inline

Change Log

Revision history for Perl extension Math::SymbolicX::Inline.

1.11  Thu Dec 20 12:47 2007
  - Fix bug for functions which use "argX" but not "arg(X-1)"

1.01  Wed Sep 27 14:55 2006
  - Switched to Module::Build.
  - Added optional pod tests.

1.00  Sun Jul 31 13:45 2005
  - Removed bug in documentation. Comtemplated Math::SymbolicX::Inline::C
    decided it was nuts due to generating C code that calls Perl subs
    as necessary.

0.01  Tue Mar  8 12:24 2005
  - original version; created by h2xs 1.23 with options
    -b 5.6.1 -AX Math::SymbolicX::Inline

    

(c) 2002-2010 Steffen Müller; All rights reserved.

Valid HTML 4.0!