Documentation

Math
in package

Table of Contents

ceilFloat()  : int
floorFloat()  : int
solveQuadratic()  : array<string|int, float>
Solves a quadratic equation with the given coefficients and returns an array of up to two solutions.
__construct()  : mixed

Methods

ceilFloat()

public static ceilFloat(float $n) : int
Parameters
$n : float
Return values
int

floorFloat()

public static floorFloat(float $n) : int
Parameters
$n : float
Return values
int

solveQuadratic()

Solves a quadratic equation with the given coefficients and returns an array of up to two solutions.

public static solveQuadratic(float $a, float $b, float $c) : array<string|int, float>
Parameters
$a : float
$b : float
$c : float
Return values
array<string|int, float>

__construct()

private __construct() : mixed
Return values
mixed

Search results