blob: 1e9077ce0b7ecc9cec721f1ea60c2f270d1f581e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/*
* spherecurv.maxima
*
* (c) 2022 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
*/
f: exp(-a * sin(theta)^2);
g: ratsimp(diff(sin(theta) * diff(f, theta), theta)/sin(theta));
g: subst(z, cos(theta), g);
g: subst(sqrt(1-z^2), sin(theta), g);
ratsimp(g);
f: ratsimp(subst(sqrt(1-z^2), sin(theta), f));
|