forked from mirrors/org-mode
etc/ORG-NEWS (Non-floating minted listings in LaTeX export): * lisp/ob-latex.el: (org-babel-execute:latex): * lisp/org-element.el: * lisp/ox-ascii.el: * lisp/ox-html.el: * lisp/ox-latex.el: * lisp/ox-md.el: * lisp/ox-odt.el: * testing/examples/ob-maxima-test.org (LaTeX output): * testing/lisp/test-org-element.el (test-org-element/cache): Spell LaTeX correctly.
2 KiB
2 KiB
a collection of examples for ob-maxima tests
- Simple tests
- Graphic output
- Output to a file
- List input
- Table input
- Construct a table from the output
- LaTeX output
Simple tests
print(s);
Pass a string
print(diff(fun, x, q))$
Graphic output
Graphic output
plot2d(sin(a*x), [x, 0, 2*%pi])$
plot3d (2^(-u^2 + v^2), [u, -3, 3], [v, -2, 2])$
Output to a file
Output to a file
for i:1 thru 10 do print(i)$
List input
Simple list as an input
print(a)$
print(a+1);
Table input
1.0 |
2.0 |
1.0 | 2.0 |
print(s+1.0);
print(s+1.0);
Matrix
1.0 | 1.0 |
ms: apply(matrix, s);
print(ms);
Construct a table from the output
with_stdout("/dev/null", load(numericalio))$
m: genmatrix (lambda([i,j], i+j-1), 3, 3)$
write_data(m, "/dev/stdout")$
LaTeX output
assume(x>0);
tex(ratsimp(diff(%e^(a*x), x)));
$$a\,e^{a\,x}$$