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

Method exp

nodejs_package/brainflow/complex.ts:141–145  ·  view source on GitHub ↗

* Get the exponential of the complex number * @returns The exponential of the complex number: (exp(a) * cos(b)) + (exp(a) * sin(b))(i)

()

Source from the content-addressed store, hash-verified

139 * @returns The exponential of the complex number: (exp(a) * cos(b)) + (exp(a) * sin(b))(i)
140 */
141 public exp(): complex
142 {
143 return new complex (
144 Math.exp(this.real) * Math.cos(this.img), Math.exp(this.real) * Math.sin(this.img));
145 }
146
147 /**
148 * Get the natural base e log of the complex number

Callers

nothing calls this directly

Calls 2

cosMethod · 0.80
sinMethod · 0.80

Tested by

no test coverage detected