Adrian Mariano
054052144e
sum/product optimizations
2024-06-25 19:24:48 -04:00
Adrian Mariano
806e4b477d
add rational_approx()
2023-06-30 16:05:55 -04:00
Adrian Mariano
924f8a6298
change count_true to num_true and simplify
...
fix bug in offset()
2022-05-27 10:21:33 -04:00
Adrian Mariano
a305b53804
remove quaternions from stroke
...
improve docs for skin
cumprod multiplies on the left
echo_matrix bugfix
2022-02-25 21:22:37 -05:00
Adrian Mariano
3a367c3faf
add path.scad tests, shift tests to correct files
...
path_extrude2d bugfix
2021-10-31 15:35:45 -04:00
Adrian Mariano
817165a833
adjust tests
2021-10-26 23:26:03 -04:00
Adrian Mariano
71dab62432
move comparison functions out of math.scad and arrays.scad into comparisons.scad
...
rename arrays.scad to lists.scad
2021-10-26 23:12:51 -04:00
Adrian Mariano
a75a368dd5
Move linear algebra to linalg.scad
...
columns->column because the multiindex case is handled by submatrix
and also it never occurs in the code.
2021-10-26 16:45:14 -04:00
Adrian Mariano
f7b08f1b9d
reorder functions in array.scad
...
list_{de,in}creasing -> is_{de,in}creasing, add strict option to both
2021-10-16 23:01:52 -04:00
Adrian Mariano
2d205a2568
subarray -> columns
2021-10-15 22:39:10 -04:00
Adrian Mariano
d66c1929a5
fix tests and bugs revealed by new tests
2021-10-01 23:57:07 -04:00
Adrian Mariano
a5ae4879be
add full covariance gaussian random vectors
...
add cholesky fatorization (needed for above, also useful for solving
symmetric linear systems.)
2021-10-01 23:37:06 -04:00
Adrian Mariano
6e3efd68a4
big function re-org to eliminate debug.scad and hide affine.scad from docs
2021-10-01 00:30:28 -04:00
Garth Minette
ee504540c3
Fix quant docs to point out non-integer quanta are allowed.
2021-07-07 23:28:07 -07:00
Garth Minette
23f4de897a
Added regressions for group_data() and all_integer()
2021-06-30 19:57:03 -07:00
RonaldoCMP
0b38bc463f
update test_math
2021-06-22 01:34:39 +01:00
Adrian Mariano
19c521913d
Added general root finder
2021-05-21 19:03:07 -04:00
Garth Minette
8bd3ef8a74
Removed range(), rangex(). Added count().
2021-04-07 20:57:45 -07:00
Revar Desmera
27754b2725
Merge pull request #490 from revarbat/revarbat_dev
...
Revarbat dev
2021-04-06 17:05:41 -07:00
Garth Minette
2b78f82063
Regressions fixes for any()/all()/count_true() changes.
2021-04-06 17:01:41 -07:00
Adrian Mariano
957907200b
bezier doc fixes, test for complex()
2021-04-02 20:39:14 -04:00
Garth Minette
0b17bf5930
Brought slice() in line with select() indexing, without wrapping. Replaced a lot of select() and slice() calls with last(), list_head(), and list_tail() calls.
2021-03-30 00:46:59 -07:00
Adrian Mariano
35c2d7df42
doc tweaks for skin
...
bug fixes for is_matrix, is_vector, and new tests for same
2021-03-14 10:25:22 -04:00
Adrian Mariano
4dc2d4cfe5
Fix bug in skin, add some complex stuff to math and tests
2021-03-12 20:36:34 -05:00
Adrian Mariano
a495528398
Fixed bugs in hull_points, added seeds to tests, added seed parm to shuffle()
2020-12-22 18:15:25 -05:00
Garth Minette
70a6b7fac8
Fixed some undef warnings in distributors.
2020-12-09 23:43:08 -08:00
Garth Minette
e6ef5e98be
Fix math.scad regression.
2020-12-02 17:21:58 -08:00
Adrian Mariano
f598426344
Add cumprod function and regression test
2020-10-23 19:06:30 -04:00
Adrian Mariano
c80c7c558a
Added rot_decode to decode rotation matrices and matrix_trace,
...
supporting function, and regression tests for both.
2020-10-20 16:26:11 -04:00
Garth Minette
16ee49e8b2
Fixed a bunch of undef math warnings with dev snapshot OpenSCAD builds.
2020-10-03 19:50:29 -07:00
Garth Minette
23bcc1b806
Removed sum_of_squares() as it's redundant with sqr(vector)
2020-09-28 16:56:18 -07:00
Garth Minette
37ae0cbba0
Simplify sqr(x) to x*x
2020-09-28 16:52:17 -07:00
Garth Minette
1435100e37
Implemented Issue #262
2020-09-25 00:31:42 -07:00
Garth Minette
b2121fbfb3
Added all_nonzero(). Added is_vector(all_nonzero=).
2020-09-07 23:10:39 -07:00
Garth Minette
a9b8f5618a
Fix for Issue #263
2020-09-06 17:15:08 -07:00
Adrian Mariano
399c40f7a6
Added null_space and diagonal_matrix
2020-09-01 18:38:31 -04:00
Adrian Mariano
3caeeff2cd
Added norm_fro, quadratic_roots and pivoting to qr_factor and
...
linear_solve. Added tests.
2020-09-01 17:57:31 -04:00
Garth Minette
b679ea52dc
Add is_zero(), is_positive(), is_negative(), is_nonpositive(), is_nonnegative().
2020-08-26 18:02:16 -07:00
Revar Desmera
c0481f14eb
Merge pull request #229 from adrianVmariano/master
...
move submatrix to arrays and relax input restrictions
2020-08-04 00:38:23 -07:00
Adrian Mariano
4e36eacca8
Moved submatrix to arrays.scad and relaxed requirement for numerical
...
input. Added examples and tests.
2020-08-03 19:49:22 -04:00
RonaldoCMP
e06519bbfb
changes to hide recursion args and avoid repetitive arg validations
...
cumsum broken in two to hide recursion args and avoid repetitive arg validations.
back_substitute changed to avoid repetitive arg validations in the recursion.
minor change in deriv2 and deriv3 to avoid an unecessary call to is_matrix.
change in is_matrix for better performance
any() and all() broken in two to avoid repetitive arg validation in the recursion and to hide recursion args.
change in polymult to call convolve
break of poly_div in two to avoid repetitive arg validations in the recursion.
2020-08-04 00:38:36 +01:00
Adrian Mariano
47d02ae783
removed median tests
2020-08-02 01:23:15 -04:00
RonaldoCMP
8a25764744
Overall review, input data check, format, new function definitions
...
New function definitions in commom.scad:
1. valid_range;
2. _list_pattern
New function definitions in math.scad:
1. binomial;
2. binomial_coefficient;
3. convolve;
Code review in math:
1. sum;
2. median;
3. is_matrix;
4. approx;
5. count_true;
6. doc of deriv2;
7. polynomial;
8. poly_mult;
9; poly_div;
10. _poly_trim
Code change in test_common:
1. new test_valid_range;
2. test_is_consistent
Code change in test_math:
1. test_approx;
2. new test_convolve;
3. new test_binomial;
4. new test_binomial_coefficient;
5. test_outer_product;
6. test_polynomial;
7. test_poly_mult;
8. test_poly_div;
9. test_poly_add;
2020-07-29 22:41:02 +01:00
RonaldoCMP
babc10d60d
Revert "input checks in math and new function definitions"
...
This reverts commit 19e5a9504a
.
2020-07-29 21:50:22 +01:00
RonaldoCMP
19e5a9504a
input checks in math and new function definitions
2020-07-29 21:49:15 +01:00
RonaldoCMP
281d945ed7
Revert "update"
...
This reverts commit d45f289a95
.
2020-07-29 15:30:35 +01:00
RonaldoCMP
d45f289a95
update
2020-07-28 22:55:21 +01:00
Adrian Mariano
7eafa691b4
Changed to relative include names
2020-07-21 20:05:21 -04:00
Adrian Mariano
f190b50c4d
substituted correct file
2020-07-12 07:10:56 -04:00
Adrian Mariano
4e2092f347
Added a bunch of tests
2020-07-11 12:22:44 -04:00