File: maxima.tex

package info (click to toggle)
cadabra 1.46-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,244 kB
  • sloc: cpp: 33,188; ansic: 2,724; makefile: 329; yacc: 180; sh: 157; python: 45; lex: 38; lisp: 19
file content (21 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
\cdbalgorithm{maxima}{}

Feed an expression through the Maxima computer algebra system. This
allows you to e.g.~do trigonometric simplification or other `scalar
computer algebra' for which \cdb does not have any built-in support.
\begin{screen}{1,2,4,5}
trigsimp( sin(x)**2 + cos(x)**2 ):
@maxima(%);
1;
integrate( \sin(x)**2, x ):
@maxima(%);
(1/2 * x - 1/4 * \sin(2 * x));
\end{screen}
Note that reserved names, like the \verb|\sin| above, get converted to
Maxima notation automatically (and they get translated again when
the result is read back into \cdb).

This command is preliminary and not yet fully functional.

\cdbseealgo{maple}