MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / toRI

Function toRI

src/compute-engine/compilation/javascript-target.ts:1040–1042  ·  view source on GitHub ↗

Convert a Complex instance to a plain {re, im} object

(c: Complex)

Source from the content-addressed store, hash-verified

1038 kind: string,
1039 params: ReadonlyArray<string>
1040): string {
1041 if (kind === 'Not') {
1042 if (params.length !== 1) throw new Error(`Not: expected one argument`);
1043 return `!(${params[0]})`;
1044 }
1045 if (kind === 'And' || kind === 'Or')

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected