ARKI_MATH_E003
thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.
What happened
Division by zero, or zero raised to a negative power.
Fix
Check the divisor before the call, or choose a result for the zero case in your own code.
Check the fix
cd packages/math && bun run vitest run src/errors.test.tsRun it after the fix. It passes when the fix worked.
Where it comes from
- Package
- @arki/math
- Version
- 0.1.0 · next release candidate
- Source
- src/errors.ts:32