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
Now we just translate math to FriCAS syntax:
x := 1/t
z := c*x*y(x)
D(z,t, 2)