Rev 3614 | Blame | Compare with Previous | Last modification | View Log | RSS feed
Documents on WIMS adopt a very convenient method to include
mathematical formulas.
The server uses the character `<font color=blue>\\</font>'
to detect when you want it to interpret what you type as a mathematical
symbol or formula. The rule is as follows.
If you want to write a <span class="tt wims_code_words">\\</span> in your message and want to have it shown as a
backslash, you should type it twice: <span class="tt wims_code_words">\\\\</span>.
If you simply want to insert some mathematical symbols or greek letters into
your document, you just need to type a <span class="tt wims_code_words">\\</span> followed by the name of
the symbol or greek letter. For example, <span class="tt wims_code_words">\\pi</span> gives you \pi,
<span class="tt wims_code_words">\\le</span> gives \le, <span class="tt wims_code_words">\\pm</span> gives \pm, <span class="tt wims_code_words">\\rightarrow</span> gives
\rightarrow, etc. The names of the symbols follow the standard TeX
convention. Here is a
\help{module=help/wimsdoc.en&subject=mathfonts#mathfonts}{liste}
(replace <span class="tt wims_code_words">$m_</span> by <span class="tt wims_code_words">\\</span> in the names).
More generally, to insert a whole mathematical formula into the document, you
can type the formula in the usual way as if you enter it into any
mathematical software or any computational tool under WIMS. In order to make
the formula formatted and shown beautifully by the message board, you have
only to enclose it in a pair of parentheses preceded by a backslash
<span class="tt wims_code_words">\\</span>. For
example, <span class="tt wims_code_words">\(x^3-3x+cos(2pi*x)^5)</span> gives you
\(x^3-3*x+cos(2pi*x)^5), or <span class="tt wims_code_words">\(sqrt(x^2+y^2))</span> gives you
\(sqrt(x^2+y^2)). You can type <span class="tt wims_code_words">\(integrate(x^2+1)dx)</span> for
\(integrate(x^2+1)*dx), or <span class="tt wims_code_words">\(integrate(exp(x^2+1),x=1..infinity))</span> for
\(integrate(exp(x^2+1),x=1..infinity)). You can also write the sum
\(sum(1/n^2,n=1..infinity)) using <span class="tt wims_code_words">\(sum(1/n^2,n=1..infinity)</span>,
or the product
\(product(n/(n+1),n=1..infinity))
using <span class="tt wims_code_words">\(product(n/(n+1),n=1..infinity)</span>.
More helps on how to enter mathematical expressions are in
\help{module=help/main&chapter=1&open=1_math#math}{this page}.
To show a matrix
\([1,2,3;4,5,6;7,8,9]),
you should type <span class="tt wims_code_words">\([1,2,3;4,5,6;7,8,9])</span>. Nested matrices are
accepted (and will be formatted correctly).
For experts in TeX or LaTeX, please notice that whenever your formula to be
formatted contains characters `\\' that do not precede defined variables or
known commands, the entire formula will be interpreted as TeX source without
transformation, and be directly fed to TeX for rendering. Thus you are allowed
to write very sophisticated formulas if you know how to write them in TeX.
Finally, the preview button in the document editing page allows you to
check whether the formula you entered will be shown correctly.
Generated by GNU Enscript 1.6.5.90.