Skip to content

Samsara\Fermat\Core\Types\Traits > SimpleTrigonometryTrait

No description available

Inheritance

Has Traits

TrigonometrySelectionTrait

TrigonometrySelectionTrait
namespace
Samsara\Fermat\Core\Types\Base\Traits
description

No description available

TrigonometryScaleTrait

TrigonometryScaleTrait
namespace
Samsara\Fermat\Core\Types\Base\Traits
description

No description available

TrigonometryNativeTrait

TrigonometryNativeTrait
namespace
Samsara\Fermat\Core\Types\Base\Traits
description

No description available

Methods

Instanced Methods

public SimpleTrigonometryTrait->cos(int|null $scale, bool $round)

cos

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
cos() Description:

Returns the cosine of this number.


public SimpleTrigonometryTrait->cosh(int|null $scale, bool $round)

cosh

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
cosh() Description:

Returns the hyperbolic cosine of this number.


public SimpleTrigonometryTrait->cot(int|null $scale, bool $round)

cot

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
cot() Description:

Returns the cotangent of this number.


public SimpleTrigonometryTrait->coth(int|null $scale, bool $round)

coth

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
coth() Description:

Returns the hyperbolic cotangent of this number.


public SimpleTrigonometryTrait->csc(int|null $scale, bool $round)

csc

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
csc() Description:

Returns the cosecant of this number.


public SimpleTrigonometryTrait->csch(int|null $scale, bool $round)

csch

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
csch() Description:

Returns the hyperbolic cosecant of this number.


public SimpleTrigonometryTrait->sec(int|null $scale, bool $round)

sec

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
sec() Description:

Returns the secant of this number.


public SimpleTrigonometryTrait->sech(int|null $scale, bool $round)

sech

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
sech() Description:

Returns the hyperbolic secant of this number.


public SimpleTrigonometryTrait->sin(int|null $scale, bool $round)

sin

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
sin() Description:

Returns the sine of this number.


public SimpleTrigonometryTrait->sinh(int|null $scale, bool $round)

sinh

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
sinh() Description:

Returns the hyperbolic sine of this number.


public SimpleTrigonometryTrait->tan(int|null $scale, bool $round)

tan

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
tan() Description:

Returns the tangent of this number.


public SimpleTrigonometryTrait->tanh(int|null $scale, bool $round)

tanh

$scale

type
int|null
description
The number of digits you want to return from the division. Leave null to use this object's scale.

$round

type
bool
description
If true, use the current rounding mode to round the result. If false, truncate the result.

return

type
Samsara\Fermat\Core\Types\Decimal
description
No description available
tanh() Description:

Returns the hyperbolic tangent of this number.