Main
Vectors
Matrix
Matrix Manipulation
Transformation Matrices
Angles
Random
Bezier Curve
Equations
Path Movement
Color
Linear Interpolation
Derivatives
Collision Detection
Animation
Circle And Ellipse
Sequence
Combinatorics
Other

Derivatives of trigonometric functions

Sine Function

import { dxSin } from 'mz-math';

const decimalPlaces = 2; // optional
const result = dxSin(Math.PI, decimalPlaces); // -1

Cosine Function

import { dxCos } from 'mz-math';

const decimalPlaces = 2; // optional
const result = dxCos(Math.PI/2, decimalPlaces); // -1

Tangent Function

import { dxTan } from 'mz-math';

const decimalPlaces = 2; // optional
const result = dxTan(Math.PI, decimalPlaces); // 1

Cotangent Function

import { dxCot } from 'mz-math';

const decimalPlaces = 2; // optional
const result = dxCot(Math.PI/2, decimalPlaces); // -1

ArcSine Function

import { dxArcSin } from 'mz-math';

const decimalPlaces = 2; // optional
const result = dxArcSin(Math.PI/4, decimalPlaces); // 1.62

ArcCosine Function

import { dxArcCos } from 'mz-math';

const decimalPlaces = 2; // optional
const result = dxArcCos(Math.PI/4, decimalPlaces); // -1.62

ArcTangent Function

import { dxArcTan } from 'mz-math';

const decimalPlaces = 2; // optional
const result = dxArcTan(Math.PI/4, decimalPlaces); // 0.62

ArcCotangent Function

import { dxArcCot } from 'mz-math';

const decimalPlaces = 2; // optional
const result = dxArcCot(Math.PI/4, decimalPlaces); // -0.62