Commit Graph

1605 Commits

Author SHA1 Message Date
dzaima
ae7ac647a2
Merge pull request #62 from mlochbaum/math
Various •math functions
2022-11-24 01:18:32 +02:00
dzaima
34e37d1b1a increase gc root buffer size 2022-11-24 01:09:50 +02:00
dzaima
cf5ce07f51 simplify singeli xor/and/or definitions 2022-11-24 00:21:19 +02:00
Marshall Lochbaum
e60b942710 Formatting 2022-11-23 16:51:30 -05:00
Marshall Lochbaum
7715cbc158 Add •math.Sum with Singeli f64 implementation 2022-11-23 16:51:30 -05:00
Marshall Lochbaum
35aef1e5cd •math.Erf, •math.ErfC, and •math.LogFact 2022-11-23 16:46:39 -05:00
Marshall Lochbaum
9a1268ea3a Simplify •math.Comb implementation 2022-11-23 16:46:39 -05:00
Marshall Lochbaum
6eb21bd68c Factorial and combinations functions 2022-11-23 16:46:39 -05:00
Marshall Lochbaum
f6109b3985 Handle no-op and boolean cases of monadic arithmetic quickly 2022-11-23 16:46:39 -05:00
Marshall Lochbaum
58cd6f0f4e Other useful math: log2 log10 log1p expm1 hypot 2022-11-23 16:46:39 -05:00
Marshall Lochbaum
a0f6986832 Hyperbolic trig 2022-11-23 16:46:39 -05:00
Marshall Lochbaum
51840bc853 •math.GCD and •math.LCM for u64 arguments 2022-11-23 16:46:39 -05:00
dzaima
49636bae79 replace --dynamic-list with visibility 2022-11-22 15:36:32 +02:00
dzaima
6044a0479f use pkg-config if available 2022-11-22 15:17:34 +02:00
dzaima
68a525b8ba
Merge pull request #61 from mlochbaum/fold
Various Fold improvements
2022-11-22 15:15:26 +02:00
dzaima
6f5c329e22 noinline float product 2022-11-22 14:24:43 +02:00
dzaima
e7cc8ec444 use o2fG instead of union field 2022-11-21 23:26:25 +02:00
Marshall Lochbaum
31106c730c Fold implementation comments 2022-11-21 15:56:15 -05:00
Marshall Lochbaum
bda653e865 Shortcutting for boolean-valued integer ∨´ 2022-11-21 15:51:03 -05:00
Marshall Lochbaum
f1ca8793e3 Boolean comparison folds, monadic only 2022-11-21 15:36:06 -05:00
Marshall Lochbaum
47392acc33 Implement ×´ for all numeric cases, using f64 product when i32 fails 2022-11-21 15:19:27 -05:00
Marshall Lochbaum
52608ba6ce Singeli min/max-fold 2022-11-21 11:47:50 -05:00
Marshall Lochbaum
4b9a21c75f Do tack-fold with selection 2022-11-21 08:07:38 -05:00
Marshall Lochbaum
38683119c0 Handle some f64 cases in dyadic fold 2022-11-20 22:03:36 -05:00
Marshall Lochbaum
c977065c20 Move +⌈⌊ folds to function tables, unifying monadic and dyadic cases 2022-11-20 21:51:30 -05:00
Marshall Lochbaum
ebfd002793 Blocked +´ and f64 ⌈´ ⌊´ 2022-11-20 21:06:05 -05:00
Marshall Lochbaum
5bfdc26d00 Move fold to its own file 2022-11-20 20:06:35 -05:00
Marshall Lochbaum
b9a3a7886d Ordering function implementation comments 2022-11-20 19:57:00 -05:00
dzaima
24195780df reorder headers to allow OpenBSD hack to function 2022-11-20 18:22:51 +02:00
dzaima
af74369e0b move precompiled bytecode message to only load.c recompilation 2022-11-18 17:02:01 +02:00
dzaima
6650ef58d3 explicitly state c++ standard version 2022-11-18 16:25:36 +02:00
dzaima
6ff521b200 don't use IA/SH macros for assigning 2022-11-18 15:07:31 +02:00
dzaima
99563a3391 update README.md 2022-11-18 14:37:18 +02:00
dzaima
585e6abbbe a tiny bit of make verbose=1 2022-11-18 13:49:55 +02:00
dzaima
ba571949b1 move build utils to within build/ 2022-11-18 00:30:49 +02:00
dzaima
966b78693b fix test/precompiled.bqn 2022-11-18 00:16:34 +02:00
dzaima
fb06da343e add info about submodules to readme 2022-11-17 23:55:38 +02:00
dzaima
e3323b2c05 don't .gitignore old local Singeli directory; update clean-submodules
given the trailing slash, it was broken if it was a symlink anyway
2022-11-17 23:46:46 +02:00
dzaima
9d0befbc60 readme info about bytecode 2022-11-17 23:40:48 +02:00
dzaima
f12b27f6ee add bytecode submodule 2022-11-17 23:22:40 +02:00
dzaima
5c65a1a7eb move precompiled bytecode to submodule 2022-11-17 23:20:07 +02:00
dzaima
274d02b98b move obj to build/obj 2022-11-17 21:21:58 +02:00
dzaima
83a6565820 make singeli directory choosing logic same as replxx 2022-11-17 20:51:47 +02:00
dzaima
ddcd081674 introduce replxx submodule system 2022-11-17 20:34:32 +02:00
dzaima
5239265a61 move singeli submodule to build/ 2022-11-17 19:51:12 +02:00
dzaima
1b64b4b548 better temporary replxx state handling 2022-11-17 19:18:33 +02:00
dzaima
35abd7f7e8 try $XDG_DATA_HOME before $HOME for REPL history directory 2022-11-17 19:18:33 +02:00
dzaima
ff36205a34 bind ctrl+n & ctrl+p 2022-11-17 19:18:33 +02:00
dzaima
1f5be9e69e backslash input 2022-11-17 19:18:33 +02:00
dzaima
9018051ce3 add •math.Atan2 autocomplete 2022-11-17 19:18:33 +02:00