I am trying to differentiate a formula in a Vector context, I can
differentiate it fine with respect to x or z, but if I try to
differentiate it fine with respect to y, I get an error.
The code is:
$context = Context("Vector");
$f = Formula("x^2 + y^2 + z^2");
$pfbypx = $f->D(x);
$pfbypy = $f->D(y);
$pfbypz = $f->D(z);
And the error is:
Invalid range "f->" in transliteration operator at line 43 of (eval 1044)
If I comment out the line where I differentiate with respect to
I'm not sure if I am doing something wrong. How can I differentiate with respect to y?
<| Post or View Comments |>