diff options
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/p5-Math-Symbolic/Makefile | 51 | ||||
-rw-r--r-- | math/p5-Math-Symbolic/distinfo | 3 | ||||
-rw-r--r-- | math/p5-Math-Symbolic/pkg-descr | 52 | ||||
-rw-r--r-- | math/p5-Math-Symbolic/pkg-plist | 24 |
5 files changed, 131 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index feefaa67e319..752f6b9defbc 100644 --- a/math/Makefile +++ b/math/Makefile @@ -189,6 +189,7 @@ SUBDIR += p5-Math-Round SUBDIR += p5-Math-SimpleVariable SUBDIR += p5-Math-Spline + SUBDIR += p5-Math-Symbolic SUBDIR += p5-Math-TrulyRandom SUBDIR += p5-Math-Vec SUBDIR += p5-Math-VecStat diff --git a/math/p5-Math-Symbolic/Makefile b/math/p5-Math-Symbolic/Makefile new file mode 100644 index 000000000000..5a961489d620 --- /dev/null +++ b/math/p5-Math-Symbolic/Makefile @@ -0,0 +1,51 @@ +# New ports collection makefile for: Math-Symbolic +# Date created: 15 May 2006 +# Whom: Aaron Dalton <aaron@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= Math-Symbolic +PORTVERSION= 0.502 +CATEGORIES= math perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Math +PKGNAMEPREFIX= p5- + +MAINTAINER= aaron@FreeBSD.org +COMMENT= Symbolic calculations + +BUILD_DEPENDS= ${SITE_PERL}/Memoize.pm:${PORTSDIR}/devel/p5-Memoize \ + ${SITE_PERL}/Parse/RecDescent.pm:${PORTSDIR}/devel/p5-Parse-RecDescent \ + ${SITE_PERL}/${PERL_ARCH}/Data/Dumper.pm:${PORTSDIR}/devel/p5-Data-Dumper +RUN_DEPENDS= ${BUILD_DEPENDS} + +MAN3= Math::Symbolic.3 \ + Math::Symbolic::AuxFunctions.3 \ + Math::Symbolic::Base.3 \ + Math::Symbolic::Compiler.3 \ + Math::Symbolic::Constant.3 \ + Math::Symbolic::Custom.3 \ + Math::Symbolic::Custom::Base.3 \ + Math::Symbolic::Custom::DefaultDumpers.3 \ + Math::Symbolic::Custom::DefaultMods.3 \ + Math::Symbolic::Custom::DefaultTests.3 \ + Math::Symbolic::Derivative.3 \ + Math::Symbolic::ExportConstants.3 \ + Math::Symbolic::MiscAlgebra.3 \ + Math::Symbolic::MiscCalculus.3 \ + Math::Symbolic::Operator.3 \ + Math::Symbolic::Parser.3 \ + Math::Symbolic::Parser::Precompiled.3 \ + Math::Symbolic::Variable.3 \ + Math::Symbolic::VectorCalculus.3 + +PERL_CONFIGURE= yes + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +IGNORE= requires at least Perl 5.6 due to dependencies. Please install lang/perl5.8 and try again +.endif + +.include <bsd.port.post.mk> diff --git a/math/p5-Math-Symbolic/distinfo b/math/p5-Math-Symbolic/distinfo new file mode 100644 index 000000000000..22ad65ed212d --- /dev/null +++ b/math/p5-Math-Symbolic/distinfo @@ -0,0 +1,3 @@ +MD5 (Math-Symbolic-0.502.tar.gz) = c7c9de6cdbdb81ebb4fadd1431505677 +SHA256 (Math-Symbolic-0.502.tar.gz) = 91f845bd65e81a92663985eb563ec9b7c09b67e537c4dbee467a01722612bbf2 +SIZE (Math-Symbolic-0.502.tar.gz) = 97823 diff --git a/math/p5-Math-Symbolic/pkg-descr b/math/p5-Math-Symbolic/pkg-descr new file mode 100644 index 000000000000..be575474b8cd --- /dev/null +++ b/math/p5-Math-Symbolic/pkg-descr @@ -0,0 +1,52 @@ +Math::Symbolic is intended to offer symbolic calculation capabilities to +the Perl programmer without using external (and commercial) libraries +and/or applications. + +Unless, however, some interested and knowledgable developers turn up to +participate in the development, the library will be severely limited by my +experience in the area. Symbolic calculations are an active field of +research in CS. + +There are several ways to construct Math::Symbolic trees. There are no +actual Math::Symbolic objects, but rather trees of objects of subclasses +of Math::Symbolic. The most general but unfortunately also the least +intuitive way of constructing trees is to use the constructors of the +Math::Symbolic::Operator, Math::Symbolic::Variable, and +Math::Symbolic::Constant classes to create (nested) objects of the +corresponding types. + +Furthermore, you may use the overloaded interface to apply the standard +Perl operators (and functions, see "OVERLOADED OPERATORS") to existing +Math::Symbolic trees and standard Perl expressions. + +Possibly the most convenient way of constructing Math::Symbolic trees is +using the builtin parser to generate trees from expressions such as '2 * +x^5'. You may use the Math::Symbolic->parse_from_string() class method for +this. + +Of course, you may combine the overloaded interface with the parser to +generate trees with Perl code such as "$term * 5 * 'sin(omega*t+phi)'" +which will create a tree of the existing tree $term times 5 times the sine +of the vars omega times t plus phi. + +There are several modules in the distribution that contain subroutines +related to calculus. These are not loaded by Math::Symbolic by default. +Furthermore, there are several extensions to Math::Symbolic availlable +from CPAN as separate distributions. Please refer to "SEE ALSO" for an +incomplete list of these. + +For example, Math::Symbolic::MiscCalculus come with Math::Symbolic and +contains routines to compute Taylor Polynomials and the associated errors. + +Routines related to vector calculus such as grad, div, rot, and Jacobi- +and Hesse matrices are availlable through the +Math::Symbolic::VectorCalculus module. This module is also able to compute +Taylor Polynomials of functions of two variables, directional derivatives, +total differentials, and Wronskian Determinants. + +Some basic support for linear algebra can be found in +Math::Symbolic::MiscAlgebra. This includes a routine to compute the +determinant of a matrix of Math::Symbolic trees. + +WWW: http://search.cpan.org/dist/Math-Symbolic +Author: Steffen Müller <symbolic-module@steffen-mueller.net> diff --git a/math/p5-Math-Symbolic/pkg-plist b/math/p5-Math-Symbolic/pkg-plist new file mode 100644 index 000000000000..d911f8798f78 --- /dev/null +++ b/math/p5-Math-Symbolic/pkg-plist @@ -0,0 +1,24 @@ +%%SITE_PERL%%/Math/Symbolic.pm +%%SITE_PERL%%/Math/Symbolic/AuxFunctions.pm +%%SITE_PERL%%/Math/Symbolic/Base.pm +%%SITE_PERL%%/Math/Symbolic/Compiler.pm +%%SITE_PERL%%/Math/Symbolic/Constant.pm +%%SITE_PERL%%/Math/Symbolic/Custom.pm +%%SITE_PERL%%/Math/Symbolic/Custom/Base.pm +%%SITE_PERL%%/Math/Symbolic/Custom/DefaultDumpers.pm +%%SITE_PERL%%/Math/Symbolic/Custom/DefaultMods.pm +%%SITE_PERL%%/Math/Symbolic/Custom/DefaultTests.pm +%%SITE_PERL%%/Math/Symbolic/Derivative.pm +%%SITE_PERL%%/Math/Symbolic/ExportConstants.pm +%%SITE_PERL%%/Math/Symbolic/MiscAlgebra.pm +%%SITE_PERL%%/Math/Symbolic/MiscCalculus.pm +%%SITE_PERL%%/Math/Symbolic/Operator.pm +%%SITE_PERL%%/Math/Symbolic/Parser.pm +%%SITE_PERL%%/Math/Symbolic/Parser/Precompiled.pm +%%SITE_PERL%%/Math/Symbolic/Parser/Yapp.pm +%%SITE_PERL%%/Math/Symbolic/Variable.pm +%%SITE_PERL%%/Math/Symbolic/VectorCalculus.pm +@dirrm %%SITE_PERL%%/Math/Symbolic/Parser +@dirrm %%SITE_PERL%%/Math/Symbolic/Custom +@dirrm %%SITE_PERL%%/Math/Symbolic +@dirrmtry %%SITE_PERL%%/Math |