sunlight

Reference

Introduction

This is a reference guide to the format of m-math equations.

m-math parses equations left to right. Unlike some other equation systems, m-math is sensitive to spaces. If you find too little spacing due to a combination, you can add spaces to help the matter.

m-math constructs are divided into four categories: operators, groups, symbols and functions.

General

Underscore '_'

An underscore character '_' signifies a space. m-math ignores normal space characters.

x y:  m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

x_y:  m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

Groups

Parentheses '(' and ')'

Parentheses '(' and ')' are used for grouping only, unless escaped using '\', so:

(x):  m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

\(x): m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

Grouping allows for the resolution of ambiguities such as exp(x):

Ae^xB: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

A(e^x)B: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

Square brackets '[' and ']'

Often used to clarify an equation involving lots of parentheses. Also used to denote the result of an integration to be evaluated between limits.

[1/x]: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

Curly braces '{' and '}'

Specialist grouping and sets.

{1'(comma) 2'(comma) 3 ...}:    m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

Bars '|'

Modulus. The first bar must be escaped ('\|').

\|a|: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

Operators

In-line Binary Operators

These include

  • Addition '+'
  • Subtraction '-'
  • Multiplication '*', '.'
  • Equality '='
  • Implication '=>'
  • Inequalities '#', '<', '<=', '>', '>=', '~='
  • Logical AND ('&')

They are all placed 'in-line' (that is, they are simply replaced with a symbol with the appropriate grouping).

a + b: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

(\(a # b) & \(b = c)) => (a # c): m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

Subscript Operator '`'

The backquote indicates a subscript. The subscript continues until the end of the current group.

x`i + a: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

x`(i + a): m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

Power Operator '^'

The caret indicates a power (superscript). The superscript continues until the end of the current group.

x^ i + a: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

x^ (i + a): m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

The power operator may sometimes require extra spacing.

Fractional Division Operator '/'

The forward stroke indicates a fractional division.

a/b: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

Care should be taken with grouping this operator.

Escape Operator '\'

The escape operator quotes the following character literally (except for parentheses and vertical bars, as noted above).

a_\/_b: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

Symbols

Symbols are inserted using the ' symbol operator. To insert a symbol, use '(symbol name).

For a full list of the symbols, see the symbol reference.

Functions

Functions are inserted using the ' operator. To insert a function, use 'function(...).

uprt

Displays the enclosed characters using a normal (upright) font.

'uprt(d)_d: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

integral

Displays an integral sign with optional limits.

'integral() 'uprt(ln)\(x) dx: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

'integral(V) 'uprt(grad)_r_dV: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

'integral(0,'(infinity)) (e^\-x) dx: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

diff, partial

Displays a differential or partial differential symbol.

'diff(x) u: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

'partial(x) v: m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

root

Displays a radical (root symbol)

'root(x): m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

(^4)'root(x): m-math is not installed. Please visit http://sunlightd.virtualave.net/m-math/ to download the latest version.

root is still in the experimental stages.

 

Copyright © David McCabe, 1998 - 2001. All rights reserved.

You will need to download and install the m-math control to display any equations on this Web site. Without this control, you will not see most of the equations. Please do not e-mail me asking why the equations do not display!

[an error occurred while processing this directive]