1Math::Symbolic::DerivatUisveer(3C)ontributed Perl DocumeMnattaht:i:oSnymbolic::Derivative(3)
2
3
4
6 Math::Symbolic::Derivative - Derive Math::Symbolic trees
7
9 use Math::Symbolic::Derivative qw/:all/;
10 $derived = partial_derivative($term, $variable);
11 # or:
12 $derived = total_derivative($term, $variable);
13
15 This module implements derivatives for Math::Symbolic trees.
16 Derivatives are Math::Symbolic::Operators, but their implementation is
17 drawn from this module because it is significantly more complex than
18 the implementation of most operators.
19
20 Derivatives come in two flavours. There are partial- and total
21 derivatives.
22
23 Explaining the precise difference between partial- and total
24 derivatives is beyond the scope of this document, but in the context of
25 Math::Symbolic, the difference is simply that partial derivatives just
26 derive in terms of explicit dependency on the differential variable
27 while total derivatives recongnize implicit dependencies from variable
28 signatures.
29
30 Partial derivatives are faster, have been tested more thoroughly, and
31 are probably what you want for simpler applications anyway.
32
33 EXPORT
34 None by default. But you may choose to import the total_derivative()
35 and partial_derivative() functions.
36
38 The package variable %Partial_Rules contains partial derivative rules
39 as key-value pairs of names and subroutines.
40
42 partial_derivative
43 Takes a Math::Symbolic tree and a Math::Symbolic::Variable as argument.
44 third argument is an optional boolean indicating whether or not the
45 tree has to be cloned before being derived. If it is true, the
46 subroutine happily stomps on any code that might rely on any components
47 of the Math::Symbolic tree that was passed to the sub as first
48 argument.
49
50 total_derivative
51 Takes a Math::Symbolic tree and a Math::Symbolic::Variable as argument.
52 third argument is an optional boolean indicating whether or not the
53 tree has to be cloned before being derived. If it is true, the
54 subroutine happily stomps on any code that might rely on any components
55 of the Math::Symbolic tree that was passed to the sub as first
56 argument.
57
59 Please send feedback, bug reports, and support requests to the
60 Math::Symbolic support mailing list: math-symbolic-support at lists dot
61 sourceforge dot net. Please consider letting us know how you use
62 Math::Symbolic. Thank you.
63
64 If you're interested in helping with the development or extending the
65 module's functionality, please contact the developers' mailing list:
66 math-symbolic-develop at lists dot sourceforge dot net.
67
68 List of contributors:
69
70 Steffen Mueller, symbolic-module at steffen-mueller dot net
71 Stray Toaster, mwk at users dot sourceforge dot net
72 Oliver Ebenhoeh
73
75 New versions of this module can be found on http://steffen-mueller.net
76 or CPAN. The module development takes place on Sourceforge at
77 http://sourceforge.net/projects/math-symbolic/
78
79 Math::Symbolic
80
81
82
83perl v5.34.0 2021-07-22 Math::Symbolic::Derivative(3)