rt
# create a function #
plus2 <- function(x)cfw_ x+2
plus2 <- function(x) x+2 # with one line, no need braces.
plus2 <- function(x) cfw_
a <- x+2 # it doesnt print; a is a variable name only used inside the function.
return(a) # you have to print ou
Mixing key words and Greek letters
cos(2) = cos2 sin2
Special characters like innity
lim exp(x) = 0
x
Subscripts and superscripts
2
kn+1 = n2 + kn kn1
Fractions
n!
=
k!(n k)!
n
k
Nesting a fraction
n
S
n1
3
2
C() + M (0, )
(1)
(2)
Equation ? shows