UNPKG

1.34 kBMarkdownView Raw
1<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
2
3# Function largerEq
4
5Test whether value x is larger or equal to y.
6
7The function returns true when x is larger than y or the relative
8difference between x and y is smaller than the configured epsilon. The
9function cannot be used to compare values smaller than approximately 2.22e-16.
10
11For matrices, the function is evaluated element wise.
12Strings are compared by their numerical value.
13
14
15## Syntax
16
17```js
18math.largerEq(x, y)
19```
20
21### Parameters
22
23Parameter | Type | Description
24--------- | ---- | -----------
25`x` | number &#124; BigNumber &#124; Fraction &#124; boolean &#124; Unit &#124; string &#124; Array &#124; Matrix | First value to compare
26`y` | number &#124; BigNumber &#124; Fraction &#124; boolean &#124; Unit &#124; string &#124; Array &#124; Matrix | Second value to compare
27
28### Returns
29
30Type | Description
31---- | -----------
32boolean &#124; Array &#124; Matrix | Returns true when the x is larger or equal to y, else returns false
33
34
35## Examples
36
37```js
38math.larger(2, 1 + 1) // returns false
39math.largerEq(2, 1 + 1) // returns true
40```
41
42
43## See also
44
45[equal](equal.md),
46[unequal](unequal.md),
47[smaller](smaller.md),
48[smallerEq](smallerEq.md),
49[larger](larger.md),
50[compare](compare.md)