Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lehrkraefte:blc:math:maxima-cheatsheet [2019/04/28 17:46] Ivo Blöchliger created |
lehrkraefte:blc:math:maxima-cheatsheet [2024/05/03 09:06] (current) Ivo Blöchliger [Using results of solve for further computations] |
||
---|---|---|---|
Line 20: | Line 20: | ||
(%o11) | (%o11) | ||
log(2) | log(2) | ||
+ | |||
+ | </ | ||
+ | Und sonst halt mit '' | ||
+ | ===== Output stuff like Maxima Input ===== | ||
+ | <code txt> | ||
+ | (%i14) x^2/3; | ||
+ | 2 | ||
+ | x | ||
+ | (%o14) | ||
+ | 3 | ||
+ | (%i15) string(%); | ||
+ | (%o15) | ||
</ | </ | ||
+ | ===== Derivative as a new function (force evaluating the differentiation) ===== | ||
+ | <code txt> | ||
+ | f(x): | ||
+ | define(ff(x), | ||
+ | </ | ||
+ | |||
+ | ===== Using results of solve for further computations ===== | ||
+ | <code txt> | ||
+ | sol: | ||
+ | x^2-x, sol[2]; | ||
+ | expand(%); | ||
+ | val: | ||
+ | /* Usable inside an expresseion: | ||
+ | subst(sol[2], | ||
+ | </ | ||
+ | Or even better: | ||
+ | <code text> | ||
+ | rhs(sol[2]); | ||
+ | map(rhs, sol); | ||
+ | </ | ||
+ | ===== Nummerically solve equations ===== | ||
+ | [[https:// | ||
+ | <code txt> | ||
+ | find_root(sin(2*x)=x, | ||
+ | </ | ||
+ | |||
+ | ===== Vector operations ===== | ||
+ | <code maxima> | ||
+ | load(" | ||
+ | cross(u, | ||
+ | norm(a): | ||
+ | area(a, | ||
+ | vec2eq(eq): | ||
+ | </ | ||
+ | |||
+ | ===== Binomial Distribution ===== | ||
+ | <code maxima> | ||
+ | load(" | ||
+ | pdf_binomial (25, | ||
+ | cdf_binomial (25, | ||
+ | </ | ||