1.5. Standard mathematical constants and functions

NameFunctionExamplary expressions and commands
 
        In (input command)Out (resulting output)
 
!Factorial5!120
 
Pi  or  πThe number ππ
N[%,8]
π
3.1415927
 
E  or е  The number e e//N2.71828
 
TrueLogical constant ‘True’True && FalseFalse
 
FalseLogical constant  ‘False’!FalseTrue
 
I  or  iImaginary unitp=                                                                       3 FormBox[StyleBox[Styl ... Alignments -> {Left}, ColumnLines -> 0.5, RowMinHeight -> 1.}], TableMasterGrid], TraditionalForm]-10 + 198 I
 
Re[ z ]Real part of a complex number zFormBox[StyleBox[StyleBox[StyleBox[Cell[TextData[Cell[BoxData[FormBox[Cell[TextData[Re[p]], Ta ... Alignments -> {Left}, ColumnLines -> 0.5, RowMinHeight -> 1.}], TableMasterGrid], TraditionalForm]-10
 
Im[ z ]Imaginary part of zFormBox[StyleBox[StyleBox[StyleBox[Cell[TextData[Cell[BoxData[FormBox[Cell[TextData[Cell[BoxDa ... Alignments -> {Left}, ColumnLines -> 0.5, RowMinHeight -> 1.}], TableMasterGrid], TraditionalForm]198
 
Degree Measure for angles30Degree//NFormBox[StyleBox[StyleBox[StyleBox[Cell[TextData[Cell[BoxData[FormBox[Cell[0.523599, TableText ... Alignments -> {Left}, ColumnLines -> 0.5, RowMinHeight -> 1.}], TableMasterGrid], TraditionalForm]
 
Abs[ x ]Absolute valueAbs[-45]  FormBox[StyleBox[StyleBox[StyleBox[Cell[TextData[Cell[BoxData[FormBox[Cell[45, TableText], Tab ... Alignments -> {Left}, ColumnLines -> 0.5, RowMinHeight -> 1.}], TableMasterGrid], TraditionalForm]
 
Sqrt[ x ]Square root FormBox[StyleBox[StyleBox[StyleBox[Cell[TextData[Cell[BoxData[Sqrt[x]]]], TableText, TextAlign ... Alignments -> {Left}, ColumnLines -> 0.5, RowMinHeight -> 1.}], TableMasterGrid], TraditionalForm]Sqrt[1024.] 32
 
Exp[ x ]Exponential function                                                                 x FormBox[StyleBox[StyleBox[Sty ... Alignments -> {Left}, ColumnLines -> 0.5, RowMinHeight -> 1.}], TableMasterGrid], TraditionalForm]Exp[                                                              2.5 - 3.125 FormBox[StyleBox[Sty ... MasterGrid], TraditionalForm]                                                                    2]0.731616
 
Log[x]Natural logarithm   Log[1.]0
 
Log[b,x]Logarithm to base b of x Log[3, 9]2
 
Sin[x ]Sine x      Sin[                                                              π FormBox[StyleBox[StyleBox[S ... ableMasterGrid], TraditionalForm]                                                                4]                                                                      1 FormBox[StyleBox[StyleBox[S ... asterGrid], TraditionalForm]                                                               Sqrt[2]
 
Cos[x]Cosine x         Cos[                                                              π FormBox[StyleBox[StyleBox[S ... ableMasterGrid], TraditionalForm]                                                                6]                                                                   Sqrt[3] FormBox[StyleBox[StyleBo ... leMasterGrid], TraditionalForm]                                                                  2
 
Tan[x]Tangent x     Tan[                                                              π FormBox[StyleBox[StyleBox[S ... ableMasterGrid], TraditionalForm]                                                                4]1   
 
Cot[x]Cotangent x   Cot[30Degree]    FormBox[StyleBox[StyleBox[StyleBox[Cell[TextData[Cell[BoxData[Sqrt[3]]]], TableText], TextAlig ... Alignments -> {Left}, ColumnLines -> 0.5, RowMinHeight -> 1.}], TableMasterGrid], TraditionalForm]
 
ArcSin[ x ]Arcus Sine of x    ArcSin[ Cos[                                                              π FormBox[StyleBox[StyleBox[S ... ableMasterGrid], TraditionalForm]                                                                6] ]                                                                  π FormBox[StyleBox[StyleBox[S ... ableMasterGrid], TraditionalForm]                                                                3
 
ArcCos[ x ]FormBox[StyleBox[StyleBox[StyleBox[Cell[TextData[Cell[BoxData[FormBox[Cell[TextData[{Arcus cos ... Alignments -> {Left}, ColumnLines -> 0.5, RowMinHeight -> 1.}], TableMasterGrid], TraditionalForm]ArcCos[ Tan[2.] ]FormBox[StyleBox[StyleBox[StyleBox[Cell[TextData[Cell[BoxData[FormBox[Cell[3.14159 - 1.41775 i ... Alignments -> {Left}, ColumnLines -> 0.5, RowMinHeight -> 1.}], TableMasterGrid], TraditionalForm]
 
ArcTan[ x ]Arcus tangent x   FormBox[StyleBox[StyleBox[StyleBox[Cell[TextData[Cell[BoxData[ArcTan[ 1]]]], TableText], TextA ... Alignments -> {Left}, ColumnLines -> 0.5, RowMinHeight -> 1.}], TableMasterGrid], TraditionalForm]                                                              π FormBox[StyleBox[StyleBox[S ... ableMasterGrid], TraditionalForm]                                                                4
 
ArcCot[ x ]Arcus cotangent   x ArcCot[ 1 ]                                                               π FormBox[StyleBox[StyleBox[S ... ableMasterGrid], TraditionalForm]                                                                4
 
Round[x]Closest integer to x         Round[2.6]   
Round[ -2.6]  
3  
-3
 
Mod[n, m]                                                                                               ...                                                                                                  mMod[ 27, 4]3
 
Random[ ]Pseudorandom number in the interval [0,1)  Random[ ]
Random[ ]  
0.08779  
0.648845