Syntax for entering math using ASCIIMathML

ASCIIMathML is an easy way to enter math in Web pages. It is used throughout IntMath.com. The math is rendered using MathJax.

This is what you can use when sending a math mail using the IntMath mail system.

Greek letters
(lower case)
TypeSee
alpha `alpha`
beta `beta`
gamma `gamma`
delta `delta`
epsilon `epsilon`
varepsilon `varepsilon`
zeta `zeta`
eta `eta`
theta `theta`
vartheta `vartheta`
iota `iota`
kappa `kappa`
lambda `lambda`
mu `mu`
nu `nu`
xi `xi`
omicron `o`
pi `pi`
rho `rho`
sigma `sigma`
tau `tau`
upsilon `upsilon`
phi `phi`
varphi `varphi`
chi `chi`
psi `psi`
omega `omega`
Greek letters
(upper case)
TypeSee
A `A`
B `B`
Gamma `Gamma`
Delta `Delta`
E `E`
Z `Z`
- -
H `H`
Theta `Theta`
- -
I `I`
K `K`
Lambda `Lambda`
M `M`
N `N`
Xi `Xi`
O `O`
Pi `Pi`
P `R`
Sigma `Sigma`
T `T`
Y `Y`
Phi `Phi`
- -
X `X`
Psi `Psi`
Omega `Omega`
Relation symbols
TypeSee
=`=`
!=`!=`
< `<`
>`>`
<=`<=`
>=`>=`
-<`-<`
>-`>-`
in`in`
!in`notin`
sub`sub`
sup`sup`
sube`sube`
supe`supe`
-=`-=`
~=`~=`
~~`~~`
prop`prop`
Font commands
Type See
bb A `bb A`
bbb A `bbb A`
cc A `cc A`
tt A `tt A`
fr A `fr A`
sf A `sf A`
Miscellaneous symbols
TypeSee
int`int`
oint`oint`
del`del`
grad`grad`
+-`+-`
O/`O/`
oo`oo`
aleph`aleph`
/_`/_`
:.`:.`
|...||`...`|
|cdots||`cdots`|
vdots`vdots`
ddots`ddots`
|\ ||`|
|quad||`quad`|
diamond`diamond`
square`square`
|__`|__`
__|`__|`
|~`|~`
~|`~|`
CC`CC`
NN`NN`
QQ`QQ`
RR`RR`
ZZ`ZZ`
Operation symbols
Type See
+ `+`
- `-`
* `*`
** `**`
// `//`
\\ `\
xx `xx`
-: `-:`
@ `@`
o+ `o+`
ox `ox`
o. `o.`
sum `sum`
prod `prod`
^^ `^^`
^^^ `^^^`
vv `vv`
vvv `vvv`
nn `nn`
nnn `nnn`
uu `uu`
uuu `uuu`
Standard functions
Type See
sin `sin`
cos `cos`
tan `tan`
csc `csc`
sec `sec`
cot `cot`
sinh `sinh`
cosh `cosh`
tanh `tanh`
log `log`
ln `ln`
det `det`
dim `dim`
lim `lim`
mod `mod`
gcd `gcd`
lcm `lcm`
min `min`
max `max`
Grouping brackets
Type See
( `(`
) `)`
[ `[`
] `]`
{ `{`
} `}`
(: `(:`
:) `:)`
{: `{:`
:} `{::}`
Logical symbols
Type See
and `and`
or `or`
not `not`
=> `=>`
if `if`
iff `iff`
AA `AA`
EE `EE`
_|_ `_|_`
TT `TT`
|-- `|--`
|== `|==`
Accents
Type See
hat x `hat x`
bar x `bar x`
ul x `ul x`
vec x `vec x`
dot x `dot x`
ddot x `ddot x`
Arrows
Type See
uarr `uarr`
darr `darr`
rarr `rarr`
-> `->`
|-> `|->`
larr `larr`
harr `harr`
rArr `rArr`
lArr `lArr`
hArr `hArr`
Type this See that Comment
x^2+y_1+z_12^34 `x^2+y_1+z_12^34` subscripts as in TeX, but numbers are treated as a unit
sin^-1(x) `sin^-1(x)` function names are treated as constants
d/dxf(x) = lim_(h->0)(f(x+h)-f(x))/h `d/dxf(x)=lim_(h->0)(f(x+h)-f(x))/h` complex subscripts are bracketed, displayed under lim
f(x) = sum_(n=0)^oo (f^((n))(a))/(n!)(x-a)^n `f(x)=sum_(n=0)^oo(f^((n))(a))/(n!)(x-a)^n` f^((n))(a) must be bracketed, else the numerator is only `a`
int_0^1f(x)dx `int_0^1f(x)dx` subscripts must come before superscripts
[[a,b],[c,d]]((n),(k)) `[[a,b],[c,d]]((n),(k))` matrices and column vectors are simple to type
x/x = {(1,if x!=0),(text{undefined},if x=0):} `x/x={(1,if x!=0),(text{undefined},if x=0):}` piecewise defined functions are based on matrix notation
a//b `a//b` use // for inline fractions
(a/b)/(c/d) `(a/b)/(c/d)` with brackets, multiple fraction work as expected
a/b/c/d `a/b/c/d` without brackets the parser chooses this particular expression
((a*b))/c `((a*b))/c` only one level of brackets is removed; * gives standard product
sqrt sqrt root3x `sqrt sqrt root3x` spaces are optional, only serve to split strings that should not match
<< a,b >> and {:(x,y),(u,v):} `<< a,b >> and {:(x,y),(u,v):}` angle brackets and invisible brackets
(a,b]={x in RR | a < x <= b} `(a,b]={x in RR | a < x <= b}` grouping brackets don't have to match
abc-123.45^-1.1 `abc-123.45^-1.1` non-tokens are split into single characters,
but decimal numbers are parsed with possible sign
hat(ab) bar(xy) ulA vec v dotx ddot y `hat(ab) bar(xy) ulA vec v dotx ddot y` accents can be used on any expression (work well in IE)
bb{AB3}.bbb(AB]. cc(AB).fr{AB}.tt[AB].sf(AB) `bb{AB3}.bbb(AB].cc(AB).fr{AB}.tt[AB].sf(AB)` font commands; can use any brackets around argument
stackrel"def"= or \stackrel{\Delta}{=}" "("or ":=) `stackrel"def"= or \stackrel{\Delta}{=}" "("or ":=)` symbols can be stacked
{::}_(\ 92)^238U `{::}_(\ 92)^238U` prescripts simulated by subsuperscripts

Tables courtesy the author of ASCIIMathML: Peter Jipsen, Chapman University.

Didn't find what you are looking for on this page? Try search:

Online Algebra Solver

This algebra solver can solve a wide range of math problems. (Please be patient while it loads.)

Ready for a break?

shadow factory game

Play a math game.

(Well, not really a math game, but each game was made using math...)

The IntMath Newsletter

Sign up for the free IntMath Newsletter. Get math study tips, information, news and updates each fortnight. Join thousands of satisfied students, teachers and parents!

Given name: * required

Family name:

email: * required

See the Interactive Mathematics spam guarantee.

Share IntMath!

Short URL for this Page

Save typing! You can use this URL to reach this page:

intmath.com/asciisyntax

Math Lessons on DVD

get MathTutorDVDs

Easy to understand math lessons on DVD. See samples before you commit.

More info: Math videos

 

axs