Difference between revisions of "Help:Math"
m |
|||
(8 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | == | + | ==LaTeX== |
− | Mathematics can be displayed on SolarSailWiki | + | You can enter LaTeX equations by enclosing them in <nowiki><math>...</math></nowiki> tags. This uses the [http://www.mediawiki.org/wiki/Extension:Math Math extension]. For LaTeX math help, see: |
− | + | * [http://www.latex-project.org/guides/ LaTeX documentation] | |
+ | ** [http://ctan.tug.org/tex-archive/info/lshort/english/lshort.pdf The Not so Short Introduction to LaTex] - with a very complete chapter on typesetting mathematical formulas | ||
+ | |||
+ | ===Examples=== | ||
+ | |||
+ | <nowiki><math>\sqrt[3]{a x + x^2}</math></nowiki> produces <math>\sqrt[3]{a x + x^2}</math> | ||
+ | |||
+ | The acceleration of a solar sail due to solar pressure <math>\vec a_s</math> given the position vector from the sun to the sail <math>\vec r_s</math> is: | ||
+ | |||
+ | <math>\vec a_s = a_c {AU^2 \over r_s^2} \left(\vec r_s \cdot \vec n\right)^2 \vec n</math> | ||
+ | |||
+ | where <math>a_c</math> is max sail acceleration at Earth's distance from the sun (1 AU), <math>AU</math> is the length of an astronomical unit, <math>r_s</math> is the magnitude of <math>\vec r_s</math>, and <math>\vec n</math> is the unit vector normal to the sail surface. | ||
+ | |||
+ | ==Mimetex== | ||
+ | |||
+ | ''Deprecated. Please follow LaTeX instructions from now on.'' | ||
+ | |||
+ | Mathematics can be displayed on SolarSailWiki using the [http://www.forkosh.com/mimetex.html Mimetex] program, which uses a subset of the [http://www.latex-project.org/ LaTeX] math formulas. | ||
+ | All you need to do is enclose a valid TeX/LaTeX formula inside <nowiki><tex>...</tex></nowiki> tags. | ||
+ | Formulas will be rendered as GIF images. | ||
+ | * [http://www.forkosh.com/mimetexmanual.html Mimetex documentation] | ||
+ | * [http://www.latex-project.org/guides/ LaTeX documentation] | ||
+ | ** [http://ctan.tug.org/tex-archive/info/lshort/english/lshort.pdf The Not so Short Introduction to LaTex] - with a very complete chapter on typesetting mathematical formulas | ||
+ | |||
+ | Some examples: | ||
+ | |||
+ | <nowiki><tex>\sqrt[3]{a x + x^2}</tex></nowiki> produces <tex>\sqrt[3]{a x + x^2}</tex> | ||
+ | |||
+ | The acceleration of a solar sail due to solar pressure <tex>\vec a_s</tex> given the position vector from the sun to the sail <tex>\vec r_s</tex> is: | ||
+ | |||
+ | <tex>\vec a_s = a_c {AU^2 \over r_s^2} \(\vec r_s \cdot \vec n\)^2 \vec n</tex> | ||
+ | |||
+ | where <tex>a_c</tex> is max sail acceleration at Earth's distance from the sun (1 AU), <tex>AU</tex> is the length of an astronomical unit, <tex>r_s</tex> is the magnitude of <tex>\vec r_s</tex>, and <tex>\vec n</tex> is the unit vector normal to the sail surface. | ||
+ | |||
+ | <!-- | ||
+ | ==ASCIIMath Not Currently in Use== | ||
+ | |||
+ | For the time being, ASCIIMath can be used, but MathML won't be properly displayed because of an incompatibility with Internet Explorer without MathPlayer installed. | ||
+ | |||
+ | Mathematics can be displayed on SolarSailWiki pages using the PHP version of [http://www.jcphysics.com/ASCIIMath/ ASCIIMath]. | ||
+ | ASCIIMath has a simple syntax for expressing equations that is converted to [http://www.w3.org/Math/ MathML] which can be rendered by newer web browsers. | ||
Browsers that support MathML are: | Browsers that support MathML are: | ||
*[http://www.microsoft.com/ie/ Internet Explorer] - using the plugin [http://www.dessci.com/en/products/mathplayer/ Mathplayer] | *[http://www.microsoft.com/ie/ Internet Explorer] - using the plugin [http://www.dessci.com/en/products/mathplayer/ Mathplayer] | ||
Line 21: | Line 61: | ||
* Linux - This requires more work, so it is discussed in more detail on its own page [[Help:MathML in Linux]]. Firefox may require additional steps. | * Linux - This requires more work, so it is discussed in more detail on its own page [[Help:MathML in Linux]]. Firefox may require additional steps. | ||
− | == | + | ==ASCIIMath== |
− | For detailed | + | For detailed ASCIIMath usage, look at the [http://www1.chapman.edu/~jipsen/mathml/asciimathsyntax.xml ASCIIMathML syntax]. |
− | ASCIIMath is contained in backquotes: `` | + | One important change is that in this implementation, ASCIIMath is NOT contained in backquotes: `...` |
+ | Instead, it is contained within "am" tags: <nowiki><am>...</am></nowiki> ("am" for "ASCIIMath"). | ||
As an example, the cube-root of a-times-x plus x-squared can be expressed using the code: | As an example, the cube-root of a-times-x plus x-squared can be expressed using the code: | ||
− | root3 (a x + x^2) | + | <nowiki><am>root3 (a x + x^2)</am></nowiki> |
− | This is displayed in MathML as: | + | This is displayed in MathML as: <am>root3 (a x + x^2)</am> |
Go the the [[Sandbox]] to try it out. | Go the the [[Sandbox]] to try it out. | ||
Line 35: | Line 76: | ||
Some other examples: | Some other examples: | ||
− | The acceleration of a solar sail due to solar pressure | + | The acceleration of a solar sail due to solar pressure <am>vec a_s</am> given the position vector from the sun to the sail <am>vec r_s</am> is: |
− | + | <am>vec a_s = a_c (AU^2)/(r_s^2) ( vec r_s * vec n)^2 vec n</am> | |
− | where | + | where <am>a_c</am> is max sail acceleration at Earth's distance from the sun (1 AU), <am>AU</am> is the length of an astronomical unit, <am>r_s</am> is the magnitude of <am>vec r_s</am>, and <am>vec n</am> is the unit vector normal to the sail surface. |
+ | --> |
Latest revision as of 10:32, 11 June 2012
LaTeX
You can enter LaTeX equations by enclosing them in <math>...</math> tags. This uses the Math extension. For LaTeX math help, see:
- LaTeX documentation
- The Not so Short Introduction to LaTex - with a very complete chapter on typesetting mathematical formulas
Examples
<math>\sqrt[3]{a x + x^2}</math> produces
The acceleration of a solar sail due to solar pressure given the position vector from the sun to the sail is:
where is max sail acceleration at Earth's distance from the sun (1 AU), is the length of an astronomical unit, is the magnitude of , and is the unit vector normal to the sail surface.
Mimetex
Deprecated. Please follow LaTeX instructions from now on.
Mathematics can be displayed on SolarSailWiki using the Mimetex program, which uses a subset of the LaTeX math formulas. All you need to do is enclose a valid TeX/LaTeX formula inside <tex>...</tex> tags. Formulas will be rendered as GIF images.
- Mimetex documentation
- LaTeX documentation
- The Not so Short Introduction to LaTex - with a very complete chapter on typesetting mathematical formulas
Some examples:
<tex>\sqrt[3]{a x + x^2}</tex> produces
The acceleration of a solar sail due to solar pressure given the position vector from the sun to the sail is:
where is max sail acceleration at Earth's distance from the sun (1 AU), is the length of an astronomical unit, is the magnitude of , and is the unit vector normal to the sail surface.