Eq
The Eq
function is used to determine if two objects are equal.
Parameters
The Eq
function accepts any two objects.
Return Value
If the two objects are equal, the Eq
function returns #t
; otherwise, it returns #f
.
Examples
Eq; (* => #t *)
Eq[1.3, 1.3]; (* => #t *)
Eq[#a, #a]; (* => #t *)
Eq[#a, #b]; (* => #f *)
Let[o1, Object[Obj, {{"A", 1}}]];
Let[o2, Object[Obj, {{"A", 1}}]];
Let[o3, Object[ObjT, {{"A", 1}}]];
Let[o4, Object[Obj, {{"A", 2}}]];
Let[o5, Object[Obj, {{"B", 1}}]];
Map[{o2, o3, o4, o5}, Fun[{o}, Eq[o1, o]]];
(* => {#t, #f, #f, #f} *)
Exp
The Exp
function is used to calculate the exponential function value,
, for a given number .
Parameters
The Exp
function accepts only one numeric parameter.
Return Value
The Exp
function returns the result of ,
where is Euler’s number.
The return value will be a numerical value.
Examples
Exp[0]; (* => 1 *)
Exp[1]; (* => 2.71828182845905 *)
Exp[2]; (* => 7.38905609893065 *)
Exp[-1]; (* => 0.367879441171442 *)
Exp[0.5]; (* => 1.64872127070013 *)