This discussion is prompted by CoCalc issue #54:
This file is shared at:
The first thing to do is to use the
%default_mode magic to set the whole worksheet to Maxima mode.
(Note: it's important to put this magic command in its own cell.)
We can now use Maxima syntax.
For example, the mathematical constants and are represented by
%e in Maxima, but here starting a cell with
% is interpreted as a cell magic.
Similarly, one would normally get numerical expression for and by evaluating the following in Maxima:
%pi, numer %e, numer
Working around the problem is easy: it is enough to put something before the
%-expression, so that
% is no longer the first character in the cell,
and thus does not get interpreted as a cell magic.
These three are illustrated below.