This is an example of a Maxima-Jupyter notebook, showing text, formulas, and plots. To start with, I'll compute an integral.
integrate (exp(-t^2), t, minf, inf);
Terrific. How about an example that shows the nice $\rm{\LaTeX}$ integral sign.
'integrate (x*log(x), x, a, b);
Questions from Maxima to the user (via asksign
) cause the notebook to open an input prompt and report the input back to the Maxima kernel. In the next example, let's try the same input twice and answer the question in different ways.
integrate (u^k, u);
integrate (u^k, u);
What about finding the roots of a polynomial?
foo : solve (x^3 - 2, x);
Let's verify that the elements of foo
are indeed the roots in question.
bar : map (lambda ([u], u^3), map (rhs, foo));
Well, it's still not obvious. Let's simplify a little.
map (radcan, bar);
Here's a different way to simplify.
map (expand, bar);
Now let's make a plot. Note that in order for the results from plot2d
to be displayed in the notebook a file name needs to specified.
plot2d ([sin, cos, tan], [x, -10, 10], [y, -10, 10], [svg_file, "maxplot.svg"],[plot_format, gnuplot])$
plot2d: some values will be clipped.
By the way, output to standard output (e.g. the output of print
or describe
) is displayed in the notebook as plain text.
print ("HELLO WORLD!");
In the case of print
, the printed value is also returned, so it is typeset also.
OK, that's all for now!