-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmaths.nim
36 lines (30 loc) · 868 Bytes
/
maths.nim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
##
## maths
## =====
## [bookmark](https://nim-lang.org/docs/math.html)
##[
## TLDR
- come back later
links
-----
- high impact
- [basic math](https://nim-lang.org/docs/math.html)
- [rational numbers](https://nim-lang.org/docs/rationals.html)
- [statistical analysis](https://nim-lang.org/docs/stats.html)
- niche
- [complex numbers](https://nim-lang.org/docs/complex.html)
- [floating point env](https://nim-lang.org/docs/fenv.html)
- [summation functions](https://nim-lang.org/docs/sums.html)
system procs
------------
- min of 2 things
- max of 2 things
- clamp between two vals, faster than max(a, min(b, c))
- succ get the next value of an ordinal
- pred get the prev value of an ordinal
- inc the an ordinal in place
- dec dec an ordinal in place
]##
{.push warning[UnusedImport]:off .}
echo "############################ math"
import std/math