Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.
This module presents step-by-step instructions for creating, and then editing well-known formulas to illustrate how to use the editor. The example and what properties of the editor it illustrates are listed below. All of these assume you have a blank Math Editor open.
As a simple example, we'll step through several ways of writing the well-known Quadratic Equation (with real or complex coefficients):
Probably the quickest way to enter math is by using the keyboard. This method requires entering a total of 3 statements and a few Tab key presses.
a*x^2+b*x+c=a*(x-(-b+root)/(2*a))*(x-(-b+root)/(2*a))
". See below for details
. Most of the text in step 2 should look similar to the notation used in calculators, except for "root
". Many calculators follow different conventions for entering complicated math operations like integrals and vectors. For this version of the editor we decided to wait for feedback from users on which convention to adopt. Until one is chosen, any math element defined in the W3C MathML Specification can be entered. The toolbar also provides a way to see the available commands.
At this point the editor should have 2 remaining boxes that need to be filled out, and 2 optional ones (the degree of the root). To fill in the rest, you will need to do the following:
b^2-4*a*c
" into the empty block under the radical. Now, the equation should be complete. In the previous steps we used the Tab key to navigate to empty blocks that still needed information in them, skipping over optional ones. We used Shift+ arrow keys to select math and Ctrl+C and Ctrl+V to copy and paste that math.
Finally, we need to copy the math and paste it back into a module. We already used the same technique above. Right now, the cursor should be just to the right of the second
In this tutorial we entered the quadratic equation entirely through the keyboard. We used the Tab and arrow keys to navigate through math content, the Return key to convert input text into math, and Ctrl+C and Ctrl+V to copy and paste both within the editor and between the editor and the main module editor.
Next, we will do the same example using the mouse and toolbar.
This method requires a bit more time because we will need to click the toolbar for every character (like "+", "*", or "/" in the previous method). Instead of doing the entire equation, this tutorial will step through creating only part of it:
Using the toolbar is a bit more tedious, but serves as a way to find operations that can be expressed in MathML. Some operations have variations (A sum can take a variable and limits, or a variable and a condition) but see Limitations on how to enter them in.
Pasting the Math back into Connexions can be done the same way as before, or can be done via the Edit menu in the browser. Again, we must select the entire equation. This can be done by highlighting the equation using the mouse, or double-clicking the division bar (since it is the outer-most operation). Once highlighted, you can Click Edit, and either Cut or Copy from the main browser menu bar. If you switch back to the Connexions module editor, you can Click Edit and then Paste again from the menu to paste the newly created math back into a module.
In this tutorial we entered a part of the quadratic equation using the mouse and toolbar buttons. We used the mouse to select move the cursor and select math, the toolbar to insert new operations, and the browser's Edit menu to copy and paste math between the editor and the main module editor.
Next, we will discuss some more advanced math editing.
So far we've gone through creating math from scratch. In this section, we will look at how to insert more elaborate symbols, change how variables look (Presentation MathML), and customize some of the operations provided in the toolbar.
So far we've used simple characters available from the keyboard. The quadratic formula is frequently written with a plus-minus sign like:
mrow
" and press the enter key -b
" and move to the next block ±
" and move to the next block mrow
is used to control how Math is displayed to the user. In this case we used it to insert a plus-minus symbol between There are many elaborate ways to customize how a variable looks. These are defined in the W3C MathML Specification . We will list off a few common ways to customize.
x_i
" or using "msub
" msubsup
" mfenced
" and then changing the symbol used for the open and close bracket (by editing the source). munderover
" places math directly above or below. mtable
"
Many operations that operate on a range have several ways of specifying the range they work on.
For example, the following are equivalent:
sum
" operation. Then, to decrease the amount of hand editing, we can type "i in S
" to the right of the equal sign. Then, we switch to MathML Source and replace every occurrence of "interval
" with "condition
" and removing the special "<block ...>
" element just above the </condition>
.
The W3C MathML Specification defines all math used in Connexions modules. It provides ways to represent formulas in a way that records the semantic meaning in the formula (Content MathML ) as well as a way to lay out variables and formulas (Presentation MathML ).
"If you are ready to start creating new materials in Connexions, or adapting and reusing existing materials, this guide and tutorial will help you get started. Questions are always welcome to […]"