Test for Math Formulas v02

Introduction

This test file is made to test math formulas with the MarkIt markup language.

Greek letters

All greek letters are available, majuscules and minuscules are available:

Minuscules

$%alpha$ : 
α
$%beta$ : 
β
$%gamma$ : 
γ
$%delta$ : 
δ
$%epsilon$ : 
ε
$%zeta$ : 
ζ
$%eta$ : 
η
$%theta$ : 
θ
$%iota$ : 
ι
$%kappa$ : 
κ
$%lambda$ : 
λ
$%mu$ : 
μ
$%nu$ : 
ν
$%xi$ : 
ξ
$%omicron$ : 
ο
$%pi$ : 
π
$%rho$ : 
ρ
$%sigma$ : 
σ
$%tau$ : 
τ
$%upsilon$ : 
υ
$%phi$ : 
φ
$%khi$ : 
χ
$%psi$ : 
ψ
$%omega$ : 
ω

Majuscules

$%ALPHA$ : 
Α
$%BETA$ : 
Β
$%GAMMA$ : 
Γ
$%DELTA$ : 
Δ
$%EPSILON$ : 
Ε
$%ZETA$ : 
Ζ
$%ETA$ : 
Η
$%THETA$ : 
Θ
$%IOTA$ : 
Ι
$%KAPPA$ : 
Κ
$%LAMBDA$ : 
Λ
$%MU$ : 
Μ
$%NU$ : 
Ν
$%XI$ : 
Ξ
$%OMICRON$ : 
Ο
$%PI$ : 
Π
$%RHO$ : 
Ρ
$%SIGMA$ : 
Σ
$%TAU$ : 
Τ
$%UPSILON$ : 
Υ
$%PHI$ : 
Φ
$%KHI$ : 
Χ
$%PSI$ : 
Ψ
$%OMEGA$ : 
Ω

Basic operations

Addition

For additions simply use the common sign :

$a + b$ : 
a + b

Blocks

Several additions in block mode with spaces in their writing

a + b 1 + c = 2 + α β + Γ + λ

The same additions in block mode without spaces in their writing

a + b 1 + c = 2 + α β + Γ + λ

Inlines

The same operations in Inline mode

The first a+b, the second,1+c=2+α, the third β+Γ+λ.

Substraction

For substraction simply use the common sign :

$a - b$ : 
a - b

Blocks

Several substractions in block mode with spaces in their writing

a - b 1 - c = 2 - α β - Γ - λ

The same substractions in block mode without spaces in their writing

a - b 1 - c = 2 - α β - Γ - λ

Inlines

The same operations in Inline mode

The first a-b, the second,1-c=2-α, the third β-Γ-λ.

Multiplication

For multiplication you can use several signs :

$a * b$ : 
a b
$a times b$ : 
a × b
$a cdot b$ : 
a b

Every multiplication must be described and no spaces are allowed. If you wish to replace a multiplication sign by a space, use a * and use the appropriate document style option.

Blocks

Several multiplications in block mode with spaces in their writing

a b a b a × b 1 c = 2 α 1 c = 2 α 1 × c = 2 × α β Γ λ β Γ λ β × Γ × λ

The same multiplications in block mode without spaces in their writing

a b 1 c = 2 α β Γ λ

Inlines

The same operations in Inline mode

ab and ab and a×b and 1c=2α and 1c=2α and 1×c=2×α and βΓλ and βΓλ and β×Γ×λ

Division and fraction

For division you can use several signs :

$a / b$ : 
a / b
$a over b$ : 
a b

If you wish to replace a multiplication sign by a vertical division, use the appropriate document style option.

Block mode

a / b a b 1 / c = 2 / α 1 c = 2 α β / Γ / λ β Γ λ β / Γ / λ / Α = 1 β Γ λ Α = 1

Inline mode

The same operations in Inline mode

a/b and ab and 1/c=2/α and 1c=2α and β/Γ/λ and βΓλ and β/Γ/λ/Α=1 and βΓλΑ=1.

Exponents

For exponent you can use the ^ sign :

$a ^ b$ : 
a b

Block mode

a n × a m = a n + m ( a n ) m = a n m a - n = ( 1 a ) n

Inline mode

an×am=an+m (an)m=anm a-n=(1a)n

Parenthesis and braces

It is possible to set priority to some parts by enclosing them with braces `{ … }`. These braces won't be shown in the document.

You can also set prioity by enclosing these parts with parenthesis ( ... ). These parenthesis will be shown in the document.

This behaviour is the same with all functions and arrangements.

Functions

All standards functions are supported. You can enclose the content either with braces `{ … }` (not shown) either with parenthesis (adjusted to the height of the content)

sin{x} sin(x)
 
cos{x} cos(x)
 
tan{x} tan(x)
 
asin{x} asin(x)
 
acos{x} acos(x)
 
atan{x} atan(x)
 

Integrals

Basis

You can show integrals by using the main command int. Tou can complete the description of the integral by using the from, to and d commands.

from a
 
to b
 
dx
 

Bellow several kind of integral desciptions:

int x : 
x x
int dx x : 
x d x x d x
int from 1 d{x} x : 
1 x d x 1 x d x
int from u to v dx x : 
u v x d x u v x d x
int from a to {b+c} d{x} {f(x)+g(x)} : 
a b + c f ( x ) + g ( x ) d x a b + c f ( x ) + g ( x ) d x

Integration brackets

It is possible to use integration brackets with a lower and upper bound to give more details to the integrations calculation.

0 2 ( 4 - x 2 ) d x = 4 0 2 1 d x - 0 2 x 2 d x = 4 [ x ] 0 2 - [ 1 3 x 3 ] 0 2

$ lbrace 1 over b rbrace $

[ 1 b ] | 1 b | | | 1 b | |

$ lparent 1 over b rparent $

Limits

You can show limits of functions by using the main command lim. Tou can complete the description of the limit by using the as and approach commands together.

as a approach b Set the variable and the limit it reach.

Bellow several kind of limits descriptions:

lim x : 
lim x lim x
lim as x approach 0 sin(x) : 
lim x 0 sin ( x ) lim x 0 sin ( x )
lim as x approach 0 {1 over x} : 
lim x 0 1 x lim x 0 1 x
lim as x approach infinity {1 over x} : 
lim x 1 x lim x 1 x

Matrix and Array

Array

To make an array, you can use the array function an describe each array cell by separating them with #. To create another line, use ## and restart describing the new line.

An array is a simple tabular representation without parenthesis or lines.

$array(a # b # c ## d # e # f ## g # h # i)$ : 
a b c d e f g h i a b c d e f g h i

Matrix

Matrix can be created the same way than arrays by using the matrix function instead of array. A matrix is an array representation surrounded by parenthesis

$matrix(a # b # c ## d # e # f ## g # h # i)$ : 
( a b c d e f g h i ) ( a b c d e f g h i )

Determinant

You can also describe a determinant by using the det function. A determinant is an array representation surrounded by vertical lines.

$det(a # b # c ## d # e # f ## g # h # i)$ : 
| a b c d e f g h i | | a b c d e f g h i |
| a b c d e f g h i | = a | e f h i | - d | b c h i | + g | b c e f |

Exemples of formulas

Trigonometry

Exact values

sin ( π 6 ) = 1 2 cos ( π 6 ) = ( 3 ) 2 tan ( π 6 ) = ( 3 ) 3 sin ( π 4 ) = ( 2 ) 2 cos ( π 4 ) = ( 2 ) 2 tan ( π 4 ) = 1 sin ( π 3 ) = ( 3 ) 2 cos ( π 3 ) = 1 2 tan ( π 3 ) = ( 3 )

Sum formulas

sin ( a + b ) = sin ( a ) cos ( b ) + sin ( b ) cos ( a ) sin ( a + b ) = sin a × cos b + sin b × cos a cos ( a + b ) = cos a × cos b - sin a × sin b tan ( a + b ) = tan a + tan b 1 - tan a × tan b

Circumference of a circle

Block mode

The formula for the circumference of a circle is :

C = 2 π r

Inline mode

The formula for the circumference of a circle is : C=2πr.

Volume of a sphere

Block mode

The formula for the volume of a sphere is :

V = 4 3 π r 3

Inline mode

The formula for the volume of a sphere is : V=43πr3.

Slope of a line

Block mode

m = y 2 - y 1 x 2 - x 1

Inline mode

The same formula in inline mode : m=y2-y1x2-x1.

Quadratic equation

y = a x 2 + b x + c

Quadratic formula

Block mode

x = - b ± b 2 - 4 a c 2 a

Inline mode

The same formula in inline mode : x=-b±b2-4ac2a.

Derivatives

Basic formula

f ( x 0 ) ' = lim x x 0 f ( x ) - f ( x 0 ) x - x 0 ( u + v ) ' = u ' + v ' ( u × v ) ' = u ' × v + u × v '

Limits

Block mode

lim x + sin x x = 0 lim x 0 sin x x = 1

Inline mode

The first : limx+sinxx=0, the second : limx0sinxx=1.

Integrals

Basic rules

Block mode

a b ( f ( x ) + g ( x ) ) d x = a b f ( x ) d x + a b g ( x ) d x a b k f ( x ) d x = k a b f ( x ) d x

Inline mode

The first formula : ab(f(x)+g(x))dx=abf(x)dx+abg(x)dx, the second : abkf(x)dx=kabf(x)dx.

Matrixes

Bases

Block mode

A=(a11a12a13a21a22a23a31a32a33)

B=(b11b12b13b21b22b23b31b32b33)

Inline mode

The first : A=(a11a12a13a21a22a23a31a32a33), the second : B=(b11b12b13b21b22b23b31b32b33).

Additions

A+B=(a11+b11a12+b12a13+b13a21+b21a22+b22a23+b23a31+b31a32+b32a33+b33)

A=|a11a12a13a21a22a23a31a32a33|

Gometric symbols

a b a b

Logic

a b a b a b a b