codegen - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : codegen Package : codegen/eqn

codegen

  

eqn

  

produce output suitable for troff/eqn printing

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

eqn(expr, filename)

Parameters

expr

-

any expression

filename

-

(optional) output to a file

Description

• 

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.

Examples

withcodegen:

eqnx2+y2=z2

{{{  "x"  sup 2 }^+^{  "y"  sup 2 }}~~=~~{  "z"  sup 2 }}

Put this output in the file EqnFile

eqnx2+y2=z2,EqnFile

eqn∫1x2+1ⅆx=∫1x2+1ⅆx

{{int  { {( {{  "x"  sup 2 }^+^1 } )} sup -1 }~d  "x" }~~=~~{arctan (
 "x" )}}

See Also

appendto

codegen

latex

writeto

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam