Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

math::symbolic::custom::defaultmods(3pm) [debian man page]

Math::Symbolic::Custom::DefaultMods(3pm)		User Contributed Perl Documentation		  Math::Symbolic::Custom::DefaultMods(3pm)

NAME
Math::Symbolic::Custom::DefaultMods - Default Math::Symbolic transformations SYNOPSIS
use Math::Symbolic; DESCRIPTION
This is a class of default transformations for Math::Symbolic trees. Likewise, Math::Symbolic::Custom::DefaultTests defines default tree testing routines. For details on how the custom method delegation model works, please have a look at the Math::Symbolic::Custom and Math::Symbolic::Custom::Base classes. EXPORT Please see the docs for Math::Symbolic::Custom::Base for details, but you should not try to use the standard Exporter semantics with this class. SUBROUTINES
apply_derivatives() Never modifies the tree in-place, but returns a modified copy of the original tree instead. Applied to variables and constants, this method just clones. Applied to operators and if the operator is a derivative, this applies the derivative to the derivative's first operand. Regardless what kind of operator this is called on, apply_derivatives will be applied recursively on its operands. If the first parameter to this function is an integer, at maximum that number of derivatives are applied (from top down the tree if possible). apply_constant_fold() Does not modify the tree in-place by default, but returns a modified copy of the original tree instead. If the first argument is true, the tree will not be cloned. If it is false or not existant, the tree will be cloned. Applied to variables and constants, this method just clones. Applied to operators, all tree segments that contain constants and operators only will be replaced with Constant objects. mod_add_constant Given a constant (object or number) as argument, this method tries hard to fold it into an existing constant of the object this is called on is already a sum or a difference. Basically, this is the same as "$tree + $constant" but does some simplification. mod_multiply_constant Given a constant (object or number) as argument, this method tries hard to fold it into an existing constant of the object this is called on is already a product or a division. Basically, this is the same as "$tree * $constant" but does some simplification. AUTHOR
Please send feedback, bug reports, and support requests to the Math::Symbolic support mailing list: math-symbolic-support at lists dot sourceforge dot net. Please consider letting us know how you use Math::Symbolic. Thank you. If you're interested in helping with the development or extending the module's functionality, please contact the developers' mailing list: math-symbolic-develop at lists dot sourceforge dot net. List of contributors: Steffen Mueller, symbolic-module at steffen-mueller dot net Stray Toaster, mwk at users dot sourceforge dot net Oliver Ebenhoeh SEE ALSO
New versions of this module can be found on http://steffen-mueller.net or CPAN. The module development takes place on Sourceforge at http://sourceforge.net/projects/math-symbolic/ Math::Symbolic::Custom Math::Symbolic::Custom::DefaultDumpers Math::Symbolic::Custom::DefaultTests Math::Symbolic perl v5.10.1 2011-01-01 Math::Symbolic::Custom::DefaultMods(3pm)

Check Out this Related Man Page

Math::Symbolic::Custom::Base(3pm)			User Contributed Perl Documentation			 Math::Symbolic::Custom::Base(3pm)

NAME
Math::Symbolic::Custom::Base - Base class for tree tests and transformations SYNOPSIS
# Extending the Math::Symbolic::Custom class: package Math::Symbolic::Custom::MyTransformations; use Math::Symbolic::Custom::Base; BEGIN {*import = &Math::Symbolic::Custom::Base::aggregate_import} our $Aggregate_Export = [qw/apply_transformation1 .../]; sub apply_transformation1 { # ... } DESCRIPTION
This is a base class for your extensions to the Math::Symbolic::Custom class. To extend the class, just use the following template for your custom class: package Math::Symbolic::Custom::MyTransformations; use Math::Symbolic::Custom::Base; BEGIN {*import = &Math::Symbolic::Custom::Base::aggregate_import} our $Aggregate_Export = [...]; # exported subroutines listed here. # Now implement the subroutines. # Exported subroutine names must start with 'apply_', 'mod_', # 'is_', 'test_', 'contains_', or 'to_' # ... 1; EXPORT Uses a custom exporter implementation to export certain routines from the invoking namespace to the Math::Symbolic::Custom namespace. But... Nevermind. SUBROUTINES
aggregate_import aggregate_import() is the only public subroutine defined by Math::Symbolic::Custom::Base and should only be called in BEGIN blocks like the one shown in the SYNOPSIS above. AUTHOR
Please send feedback, bug reports, and support requests to the Math::Symbolic support mailing list: math-symbolic-support at lists dot sourceforge dot net. Please consider letting us know how you use Math::Symbolic. Thank you. If you're interested in helping with the development or extending the module's functionality, please contact the developers' mailing list: math-symbolic-develop at lists dot sourceforge dot net. List of contributors: Steffen Mueller, symbolic-module at steffen-mueller dot net Stray Toaster, mwk at users dot sourceforge dot net Oliver Ebenhoeh SEE ALSO
New versions of this module can be found on http://steffen-mueller.net or CPAN. The module development takes place on Sourceforge at http://sourceforge.net/projects/math-symbolic/ Math::Symbolic perl v5.10.1 2011-01-01 Math::Symbolic::Custom::Base(3pm)
Man Page