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

Method mag

nodejs_package/brainflow/complex.ts:104–107  ·  view source on GitHub ↗

* Get the magnitude(absolute value) of the complex number * @returns The magnitude: sqroot(a^2 + b^2)

()

Source from the content-addressed store, hash-verified

102 * @returns The magnitude: sqroot(a^2 + b^2)
103 */
104 public mag(): number
105 {
106 return Math.sqrt((this.real * this.real) + (this.img * this.img));
107 }
108
109 /**
110 * Get the conjugate of the complex number

Callers 2

logMethod · 0.95
toPolarMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected