codegen
eqn
produce output suitable for troff/eqn printing
Calling Sequence
Parameters
Description
Examples
eqn(expr, filename)
expr
-
any expression
filename
(optional) output to a file
The eqn function produces output which is suitable for printing the input expression expr with a troff/eqn processor. It knows how to format integrals, limits, sums, products and matrices.
The mathematical format is taken, in general, from the CRC handbook or the Handbook of Mathematical functions.
The functions sum, product, int, diff, limit, and log are aliased by Sum, Product, Int, Diff, Limit, and Log, so that these can be used to prevent evaluation by Maple.
User-defined function printing can be interfaced by including a procedure `eqn/function-name`.
Note eqn will not produce .EQ or .EN lines in the output file.
The function eqn produces output as a side-effect, and returns NULL as the function value. Therefore the ditto commands, % and %%, will not recall the output of an eqn command.
with⁡codegen:
eqn⁡x2+y2=z2
{{{ "x" sup 2 }^+^{ "y" sup 2 }}~~=~~{ "z" sup 2 }}
Put this output in the file EqnFile
eqn⁡x2+y2=z2,EqnFile
eqn⁡Int⁡1x2+1,x=int⁡1x2+1,x
{{int { {( {{ "x" sup 2 }^+^1 } )} sup -1 }~d "x" }~~=~~{arctan ( "x" )}}
See Also
appendto
latex
writeto
Download Help Document