12.07.2015 Views

Learning Guide Learning Guide

Learning Guide Learning Guide

Learning Guide Learning Guide

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

7.2 Writing Data to a File • 277> 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’s math mode.However, it does not produce the command for entering and leaving mathmode, and it does not attempt any line breaking or alignment.The latex command can translate most types of mathematical expressions,including integrals, limits, sums, products, and matrices. Youcan expand the capabilities of latex by defining procedures with namesof the form ‘latex/functionname‘. Such a procedure formats calls tothe function called functionname. You should produce the output of suchformatting functions with the printf command. The latex commanduses the writeto command to redirect the output when you specify afilename.The latex command does not generate the commands that L A TEXrequires to put the typesetting system into mathematics mode ($...$, forexample).The following example shows the generation of L A TEX for an equationfor an integral and its value. Notice the use of Int, the inert form of int,to prevent evaluation of the left hand side of the equation that Maple isformatting.> 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)> latex(%);\int \! \left( {x}^{4}+1 \right) ^{-1}{dx}=1/8\,\sqrt {2}\ln \left( {\frac {{x}^{2}+x\sqrt{2}+1}{{x}^{2}-x\sqrt {2}+1}} \right) +1/4\,\sqrt {2}\arctan \left( x\sqrt {2}+1 \right) +1/4\,\sqrt {2}\arctan \left( x\sqrt {2}-1\right)Section 7.3 describes how you can save an entire worksheet in L A TEXformat.

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

Saved successfully!

Ooh no, something went wrong!