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

Function nonPositiveSign

src/compute-engine/boxed-expression/sgn.ts:111–121  ·  view source on GitHub ↗
(s: Sign | undefined)

Source from the content-addressed store, hash-verified

109
110/**
111 * Sign `s` is <= 0.
112 *
113 *
114 * **note**: returns *undefined* where sign does not apply to the field of reals, or does not convey
115 * enough information.
116 *
117 * @param s
118 */
119export function nonPositiveSign(s: Sign | undefined): boolean | undefined {
120 if (s === undefined) return undefined;
121
122 if ((['negative', 'non-positive', 'zero'] as Sign[] as Sign[]).includes(s))
123 return true;
124 //Definitely positive

Callers 3

isNonPositiveMethod · 0.90
isNonPositiveMethod · 0.90
isNonPositiveMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected