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

Function isOctahedral

test/compute-engine/number-theory.test.ts:3–8  ·  view source on GitHub ↗
(n: number | bigint)

Source from the content-addressed store, hash-verified

1import { ComputeEngine } from '../../src/compute-engine';
2import { engine as ce } from '../utils';
3import { CancellationError } from '../../src/common/interruptible';
4
5const isOctahedral = (n: number | bigint) =>
6 ce
7 .expr(['IsOctahedral', ce.number(n)])
8 .evaluate()
9 .toString()
10 .replace(/"/g, '');
11

Callers 1

Calls 5

replaceMethod · 0.65
toStringMethod · 0.65
evaluateMethod · 0.65
exprMethod · 0.65
numberMethod · 0.65

Tested by

no test coverage detected