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

Method toPolar

nodejs_package/brainflow/complex.ts:205–210  ·  view source on GitHub ↗

* Get the complex number's polar coordinates as a tuple * @returns A tuple containing the arguement/angle of the complex number as the 1st element, and * the magnitude as the 2nd

()

Source from the content-addressed store, hash-verified

203 * the magnitude as the 2nd
204 */
205 public toPolar(): [number, number]
206 {
207 let mag = this.mag();
208 let theta = this.arg();
209 return [theta, mag];
210 }
211
212 /**
213 * Get the complex number as a string

Callers

nothing calls this directly

Calls 2

magMethod · 0.95
argMethod · 0.95

Tested by

no test coverage detected