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

Method toString

nodejs_package/brainflow/complex.ts:216–227  ·  view source on GitHub ↗

* Get the complex number as a string * @returns String representation of the complex number

()

Source from the content-addressed store, hash-verified

214 * @returns String representation of the complex number
215 */
216 public toString(): string
217 {
218 if (Math.sign(this.img) === -1)
219 {
220 // bit of a dirty hack..
221 return this.real + " - " + -this.img + "i";
222 }
223 else
224 {
225 return this.real + " + " + this.img + "i";
226 }
227 }
228
229 /**
230 * Compare two complex numbers for equality

Callers 11

BoardShimClass · 0.80
MLModelClass · 0.80
DataFilterClass · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected