No longer importing math module.
h3rald h3rald@h3rald.com
Sun, 29 Sep 2024 11:07:58 +0200
4 files changed,
18 insertions(+),
16 deletions(-)
M
minpkg/lib/min_math.nim
→
minpkg/lib/min_math.nim
@@ -111,7 +111,7 @@ def.symbol("d2r") do (i: In):
let vals = i.expect("num") i.push vals[0].getFloat.degToRad.newVal - def.symbol("r2g") do (i: In): + def.symbol("r2d") do (i: In): let vals = i.expect("num") i.push vals[0].getFloat.radToDeg.newVal
M
next-release.md
→
next-release.md
@@ -52,6 +52,9 @@ - **store** mdule: renamed **dsdelete** to **store.delete**
- **store** mdule: renamed **dsquery** to **store.query** - **store** mdule: renamed **dswrite** to **store.write** - **store** mdule: renamed **dsread** to **store.read** +- The **crypto** module is no longer imported. +- The **math** module is no longer imported. +- **math** mdule: renamed **r2g** to **math.r2d**
M
prelude.min
→
prelude.min
@@ -1,5 +1,4 @@
; Imports -'math import 'net import 'http import 'xml import
M
tests/math.min
→
tests/math.min
@@ -3,33 +3,33 @@ ;;;
"math" test.describe - (0 d2r sin 0 ==) test.assert + (0 math.d2r math.sin 0 ==) test.assert - (30 d2r sin 0.5 ==) test.assert + (30 math.d2r math.sin 0.5 ==) test.assert - (45 d2r sin 2 sqrt 2 / ==) test.assert + (45 math.d2r math.sin 2 math.sqrt 2 / ==) test.assert - (60 d2r sin 3 sqrt 2 / ==) test.assert + (60 math.d2r math.sin 3 math.sqrt 2 / ==) test.assert - (90 d2r sin 1 ==) test.assert + (90 math.d2r math.sin 1 ==) test.assert - (15 d2r sin 75 d2r cos ==) test.assert + (15 math.d2r math.sin 75 math.d2r math.cos ==) test.assert - (15 cos 2 pow 15 sin 2 pow + 1 ==) test.assert + (15 math.cos 2 math.pow 15 math.sin 2 math.pow + 1 ==) test.assert - (pi 4 / tan 1 ==) test.assert + (math.pi 4 / math.tan 1 ==) test.assert - (e 3 pow ln 3 ==) test.assert + (math.e 3 math.pow math.ln 3 ==) test.assert - (pi floor 3 ==) test.assert + (math.pi math.floor 3 ==) test.assert - (pi 2 round 3.14 ==) test.assert + (math.pi 2 math.round 3.14 ==) test.assert - (pi ceil 4 ==) test.assert + (math.pi math.ceil 4 ==) test.assert - (pi trunc 3 ==) test.assert + (math.pi math.trunc 3 ==) test.assert - (-2.87 abs 2.87 ==) test.assert + (-2.87 math.abs 2.87 ==) test.assert test.report stack.clear