Lee Sang Gyu
|
4c9c628a31
|
fix(package): [mathutil] compute Combination without factorial overflow (#414)
* fix(package): [mathutil] compute Combination without factorial overflow
* test(package): [mathutil] cover Combination for large n
|
2026-11-09 17:37:55 +08:00 |
|
 Yusuf EfeandDuDaoDong
|
5774d0e95e
|
fix(mathutil): compute permutations without factorial division (#364)
Co-authored-by: DuDaoDong <dudaodong@gmail.com>
|
2026-10-24 22:50:03 +08:00 |
|
Yusuf Efe
|
9b0a0caa75
|
fix(mathutil): preserve distances at extreme scales (#360)
|
2026-10-23 22:43:47 +08:00 |
|
Yusuf Efe
|
ec11fdf345
|
fix(mathutil): scale integer inputs after float conversion (#361)
|
2026-10-23 21:02:24 +08:00 |
|
Yusuf Efe
|
172712df30
|
fix(mathutil): honour Fibonacci seeds at the first positions (#362)
|
2026-10-23 20:57:07 +08:00 |
|
Yusuf Efe
|
a296281408
|
fix(mathutil): format TruncRound integer inputs as floats (#365)
|
2026-10-23 20:54:59 +08:00 |
|
Yusuf Efe
|
0f4f73fbba
|
fix(mathutil): divide before multiplying LCM factors (#363)
|
2026-10-23 18:19:46 +08:00 |
|
Yusuf Efe
|
b282ada39e
|
fix(mathutil): stop stepped ranges when values stop increasing (#376)
|
2026-10-23 18:04:43 +08:00 |
|
jake
|
93c777a418
|
Update mathutil.go
fix: return 0 when Average is called with empty slice
|
2025-09-22 10:04:23 +08:00 |
|
dudaodong
|
db479ef1bc
|
fix: fix issue #292
|
2025-02-14 17:35:48 +08:00 |
|
dudaodong
|
ecafed511c
|
doc: add play ground demo for v2.3.4
|
2024-12-04 14:25:51 +08:00 |
|
dudaodong
|
95a894e53f
|
feat: add Permutation and Combination
|
2024-11-19 10:12:07 +08:00 |
|
dudaodong
|
8322951475
|
feat: add StdDev and fix bug of Average for math package
|
2024-11-18 17:01:27 +08:00 |
|
dudaodong
|
6b2c91b0f6
|
feat: add Variance for math package
|
2024-11-18 16:25:32 +08:00 |
|
dudaodong
|
1b31014f81
|
doc: add go playground demo
|
2024-03-06 14:52:35 +08:00 |
|
dudaodong
|
a54d4c79a0
|
doc: update doc for mathutil package
|
2024-03-04 19:52:49 +08:00 |
|
Cannian
|
f7b54986aa
|
feat(mathutil): add DIv, FloorToFloat, FloorToString, CeilToFloat, CeilToString (#199)
|
2024-03-04 17:40:31 +08:00 |
|
Cannian
|
c02c4f813b
|
refactor(mathutil): round related method support generics (#195)
|
2024-03-01 16:04:23 +08:00 |
|
dudaodong
|
ddd265de78
|
fix: fix comment error
|
2023-12-19 15:36:07 +08:00 |
|
dudaodong
|
8bd31d39c3
|
docs: update doc
|
2023-08-27 11:41:29 +08:00 |
|
dudaodong
|
8229de2f10
|
test: add parallel running for all unit test functions
|
2023-06-30 10:18:45 +08:00 |
|
dudaodong
|
7da931e0a0
|
feat: add Abs
|
2023-06-27 10:24:35 +08:00 |
|
dudaodong
|
8f49078eb3
|
doc: add go playground demo
|
2023-06-20 14:04:18 +08:00 |
|
dudaodong
|
bfa9091c09
|
test: clean code
|
2023-06-08 16:25:48 +08:00 |
|
dudaodong
|
c11d63c2e2
|
feat: add Sum
|
2023-06-08 16:18:25 +08:00 |
|
dudaodong
|
e08a62b0ba
|
doc: add doc for Log function
|
2023-06-07 11:37:12 +08:00 |
|
dudaodong
|
a6a8fd88bc
|
feat: add Log function
|
2023-06-06 14:34:40 +08:00 |
|
dudaodong
|
cbf8cfdffa
|
doc: add go playground demo
|
2023-06-01 14:11:57 +08:00 |
|
dudaodong
|
af106a4a8e
|
doc: add doc for Cos and Sin
|
2023-05-28 20:12:40 +08:00 |
|
dudaodong
|
67c1b54b5a
|
feat: add Cos and Sin function
|
2023-05-25 17:51:40 +08:00 |
|
dudaodong
|
259dbce85e
|
doc: add go playground demo
|
2023-05-19 11:42:17 +08:00 |
|
dudaodong
|
f05477d9cf
|
fix: update logic of Percent function
|
2023-05-18 10:11:48 +08:00 |
|
dudaodong
|
e2aeb8ec07
|
doc: add document for GCD and LCM function
|
2023-05-06 11:28:38 +08:00 |
|
dudaodong
|
654ba15aaf
|
feat: add GCD and LCM function
|
2023-05-06 11:02:00 +08:00 |
|
dudaodong
|
4311b9ac66
|
test: remove t.Log()
|
2023-04-26 14:59:45 +08:00 |
|
dudaodong
|
8bdd46bda4
|
doc: add play ground demo
|
2023-04-03 10:33:57 +08:00 |
|
dudaodong
|
027abd6ad5
|
feat: add IsPrime
|
2023-03-30 11:54:20 +08:00 |
|
dudaodong
|
cde5946bf0
|
feat: add PointDistance
|
2023-03-23 17:49:07 +08:00 |
|
dudaodong
|
c28803b25e
|
feat: add AngleToRadian and RadianToAngle
|
2023-03-23 17:41:31 +08:00 |
|
dudaodong
|
f09e521783
|
doc: add go playground demo
|
2023-03-22 21:06:01 +08:00 |
|
dudaodong
|
51a6912eb3
|
feat: add RangeWithStep function
|
2023-03-06 18:05:58 +08:00 |
|
dudaodong
|
28d0428b50
|
feat: add Range function
|
2023-03-06 17:49:56 +08:00 |
|
dudaodong
|
c85d910044
|
add playground demo
|
2023-01-09 11:02:41 +08:00 |
|
dudaodong
|
278733d3d1
|
Todo: add todo for playground demo of function
|
2023-01-07 18:27:07 +08:00 |
|
dudaodong
|
6d57891f66
|
doc: update document for mathutil package
|
2023-01-02 15:19:47 +08:00 |
|
dudaodong
|
927245e47f
|
test: add example for mathutil package
|
2023-01-02 14:59:49 +08:00 |
|
dudaodong
|
a70ec6ad1e
|
refactor: use constraints from golang.org/x/exp/constraints
|
2022-12-11 11:25:34 +08:00 |
|
燕归来
|
5399c2290e
|
feat: support type alias for Number constraint (#60)
|
2022-10-19 17:21:53 +08:00 |
|
dudaodong
|
44370aef5e
|
refactor: change variable name to
|
2022-07-18 15:52:51 +08:00 |
|
dudaodong
|
45436798af
|
fix: fix TestMinBy test function
|
2022-05-18 15:23:57 +08:00 |
|