Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
codegen[eqn] - produce output suitable for troff/eqn printing
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
{{{ "x" sup 2 }^+^{ "y" sup 2 }}~~=~~{ "z" sup 2 }}
Put this output in the file EqnFile
{{int { {( {{ "x" sup 2 }^+^1 } )} sup -1 }~d "x" }~~=~~{arctan ( "x" )}}
See Also
appendto, codegen, latex, writeto
Download Help Document