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
Garth Minette
f60ef80eaa
Added regressions for is_matrix(), matrix_inverse()
2020-07-04 00:38:40 -07:00
Revar Desmera
20dfaac113
Bugfix for #182 . Added assert_equal() and assert_approx() for regression helpers.
2020-06-20 19:51:58 -07:00
Revar Desmera
53c1e25395
Standardize indention on spaces, not tabs.
2020-05-29 19:04:34 -07:00
Revar Desmera
019961aef7
Added dflt= arg to sum(), defaulting to 0.
2020-02-08 21:54:39 -08:00
Revar Desmera
9f6a95090f
Added regressions for gcd(), lcm(), and factorial()
2020-01-16 13:27:50 -08:00
Revar Desmera
9f92fe8775
Enhanced lerp() to allow list/range u values to return lists of results.
2019-11-18 21:11:38 -08:00
Revar Desmera
5cca83958f
gaussian_rand() -> gaussian_rands(), log_rand() -> log_rands()
2019-11-06 22:19:19 -08:00
Revar Desmera
b0caccebe7
Regression test fixes.
2019-10-23 22:49:40 -07:00
Revar Desmera
28bf2116ec
Added a bunch of regression tests.
2019-10-22 17:10:04 -07:00
Revar Desmera
56b41b487b
Improved compare_vals() and compare_lists() for heterogenous types.
2019-06-24 15:31:59 -07:00
Revar Desmera
11e5406951
Fixed product() for matrices.
2019-05-12 13:41:26 -07:00
Revar Desmera
ba9b7c5b3b
Added product()
2019-05-12 13:32:34 -07:00
Revar Desmera
143e74ab48
Added polyhedra.scad
2019-05-04 20:21:21 -07:00
Revar Desmera
3a71633f7f
Bugfixes for hull.scad
2019-04-30 23:45:05 -07:00
Revar Desmera
a46ea27fca
Changed all BOSL references to BOSL2.
2019-04-18 23:45:46 -07:00