FullMath
Handles core maths for multiplication, division, and quadratic root.
GitHub File: fullMath.ts
Constructor
Private constructor that cannot be constructed.
Methods
mulDivRoundingUp() - public
static
public
static
Divides the product of the params by the given denominator and rounds up to the nearest integer.
Parameters
Params | Type | Description |
---|---|---|
a | The multiplicand. | |
b | The multiplier. | |
denominator | Denominator to divide the product of the multiplicand and multiplier. |
Returns
Type | Description |
---|---|
Product of |
mulDiv() - public
static
public
static
Divides the product of the params by the given denominator.
Parameters
Returns
Type | Description |
---|---|
Product of |
getSmallerRootOfQuadEqn() - public
static
public
static
Returns the smaller root of a quadratic equation.
Parameters
Params | Type | Description |
---|---|---|
a | First quadratic coefficient. | |
b | Second quadratic coefficient. | |
c | Third quadratic coefficient. |
Returns
Type | Description |
---|---|
Smallest root of the quadratic equation. |
Last updated