11.07.2015 Views

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8.2 Writing Data to a File • 285omit filename, latex prints the L A TEX code on the screen. You cancut and paste from the output into your L A TEX document.> latex( a/b );{\frac {a}{b}}> latex( Limit( int(f(x), x=-n..n), n=infinity ) );\lim _{n\rightarrow \infty }\int _{-n}^{n}\!f\left( x \right) {dx}The latex command:• Produces code suitable for L A TEX math mode. However, it does notproduce the command for entering and leaving math mode, and itdoes not attempt any line breaking or alignment.• Can translate most types of mathematical expressions, including integrals,limits, sums, products, and matrices. You can expand thecapabilities of latex by defining procedures with names of the form‘latex/functionname‘. Such a procedure formats calls to the functioncalled functionname. You must produce the output of such formattingfunctions with the printf command.• Uses the writeto command to redirect the output when you specifya filename.• Does not generate the commands that L A TEX requires to put the typesettingsystem into mathematics mode (for example, $...$).The following example shows the generation of L A TEX for an equation foran integral and its value.Note: Int, the inert form of int, prevents the evaluation of the left-handside of the equation that <strong>Maple</strong> is formatting.> Int(1/(x^4+1),x) = int(1/(x^4+1),x);∫1x 4 + 1 dx = 1 √ x 2 + x √ 2 + 12 ln(8 x 2 − x √ 2 + 1 ) + 1 √ √2 arctan(x 2 + 1)4+ 1 4√2 arctan(x√2 − 1)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!