|
|
last edited 1 year ago by test1 |
1 | ||
Editor: test1
Time: 2023/09/23 01:04:28 GMT+0 |
||
Note: |
changed: - In practice we frequently need to deal with composite functions. This is frequently formulated as 'y' depends in 'x' where 'x' is a function (say of argument 't'). Unlike some other systems in FriCAS one have to be explicit with dependencies. This make simple cases slightly more verbose, but allows clean handling of more complicated cases. For concretness consider the following situation: \begin{latex} $$ z(y(x(t))) $$ \end{latex} where 'z' is simple function of 'y', 'x' is simple function of 't' say \begin{latex} $$ z = c x y, $$ $$ x = \frac{1}{t} $$ \end{latex} and 'y' is arbitrary. We want to compute second derivative of our function. In FriCAS we can express is in very natural way. First define 'y' as an operator to represent arbitrary function: \begin{axiom} y := operator 'y \end{axiom} Now we just translate math to FriCAS syntax: \begin{axiom} x := 1/t z := c*x*y(x) D(z, t, 2) \end{axiom}
In practice we frequently need to deal with composite functions.
This is frequently formulated as y
depends in x
where x
is a function (say of argument t
). Unlike some other systems
in FriCAS one have to be explicit with dependencies. This
make simple cases slightly more verbose, but allows clean
handling of more complicated cases. For concretness
consider the following situation:
z
is simple function of y
, x
is simple function of t
say
y
is arbitrary. We want to compute second derivative of our
function.
In FriCAS we can express is in very natural way. First define y
as an
operator to represent arbitrary function:
(1) -> y := operator 'y
(1) |
Now we just translate math to FriCAS syntax:
x := 1/t
(2) |
z := c*x*y(x)
(3) |
D(z,t, 2)
(4) |