MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / tan

Method tan

nodejs_package/brainflow/complex.ts:180–186  ·  view source on GitHub ↗

* Get the tangent of the complex number * @returns The tangent of the complex number

()

Source from the content-addressed store, hash-verified

178 * @returns The tangent of the complex number
179 */
180 public tan(): complex
181 {
182 // defined in terms of the identity tan(z) = sin(z) / cos(z)
183 let num = this.sin();
184 let denom = this.cos();
185 return num.div(denom);
186 }
187
188 /**
189 * Static method to construct a complex number in rectangular form from polar coordinates

Callers

nothing calls this directly

Calls 3

sinMethod · 0.95
cosMethod · 0.95
divMethod · 0.80

Tested by

no test coverage detected