trait TrigonometricTrait (View source)

Trigonometric methods

Methods

static NdArray|int|float
cos(NdArray|array|int|float $m)

Cosine element-wise.

static NdArray|int|float
sin(NdArray|array|int|float $m)

Trigonometric sine, element-wise.

static NdArray|int|float
tan(NdArray|array|int|float $m)

Compute tangent element-wise.

Details

final static NdArray|int|float cos(NdArray|array|int|float $m)

Cosine element-wise.

Parameters

NdArray|array|int|float $m

Return Value

NdArray|int|float

final static NdArray|int|float sin(NdArray|array|int|float $m)

Trigonometric sine, element-wise.

Parameters

NdArray|array|int|float $m

Return Value

NdArray|int|float

final static NdArray|int|float tan(NdArray|array|int|float $m)

Compute tangent element-wise.

Equivalent to np::sin(x)->divide(np::cos(x)) element-wise.

Parameters

NdArray|array|int|float $m

Return Value

NdArray|int|float