Difference between revisions of "Help:Math"
m (→ASCIIMath) |
m |
||
Line 1: | Line 1: | ||
==Intro== | ==Intro== | ||
− | Mathematics can be displayed on SolarSailWiki pages using | + | Mathematics can be displayed on SolarSailWiki pages using [http://www1.chapman.edu/~jipsen/asciimath.html ASCIIMathML], which requires Javascript and MathML to be used fully. |
− | + | ASCIIMathML 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 21: | ||
* 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. | ||
− | == | + | ==ASCIIMathML== |
− | For detailed | + | For detailed ASCIIMathML usage, look at the [http://www1.chapman.edu/~jipsen/mathml/asciimathsyntax.xml ASCIIMathML syntax]. |
− | + | ASCIIMath is contained in backquotes: `` | |
− | + | ||
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) | |
− | This is displayed in MathML as: | + | This is displayed in MathML as: `root3 (a x + x^2)` |
Go the the [[Sandbox]] to try it out. | Go the the [[Sandbox]] to try it out. | ||
Line 36: | Line 35: | ||
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 `vec a_s` given the position vector from the sun to the sail `vec r_s` is: |
− | + | `vec a_s = a_c (AU^2)/(r_s^2) ( vec r_s * vec n)^2 vec n` | |
− | where | + | where `a_c` is max sail acceleration at Earth's distance from the sun (1 AU), `AU` is the length of an astronomical unit, `r_s` is the magnitude of `vec r_s`, and `vec n` is the unit vector normal to the sail surface. |
Revision as of 16:01, 1 October 2007
Intro
Mathematics can be displayed on SolarSailWiki pages using ASCIIMathML, which requires Javascript and MathML to be used fully. ASCIIMathML has a simple syntax for expressing equations that is converted to MathML which can be rendered by newer web browsers. Browsers that support MathML are:
- Internet Explorer - using the plugin Mathplayer
- Mozilla Firefox
- Mozilla
- Mozilla SeaMonkey
Getting MathML to work
For Internet Explorer, download and install the Mathplayer plugin.
Mozilla-based browsers do have MathML support built-in, but they may require additional steps to get it working. In particular, the fonts can be a problem, as discussed in this page on Fonts for MathML-enabled Mozilla. Take a look at that page for operating-specific instructions. In general, the approach is:
- Windows - Download and install the fonts required.
- MacOS - Download and install the fonts required.
- 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.
ASCIIMathML
For detailed ASCIIMathML usage, look at the ASCIIMathML syntax. ASCIIMath is contained in backquotes: `` As an example, the cube-root of a-times-x plus x-squared can be expressed using the code:
root3 (a x + x^2)
This is displayed in MathML as: `root3 (a x + x^2)`
Go the the Sandbox to try it out.
Some other examples:
The acceleration of a solar sail due to solar pressure `vec a_s` given the position vector from the sun to the sail `vec r_s` is:
`vec a_s = a_c (AU^2)/(r_s^2) ( vec r_s * vec n)^2 vec n`
where `a_c` is max sail acceleration at Earth's distance from the sun (1 AU), `AU` is the length of an astronomical unit, `r_s` is the magnitude of `vec r_s`, and `vec n` is the unit vector normal to the sail surface.