usage message fixes and doc tweaks

remove triangle area, optimize polygon_area for triangles
This commit is contained in:
Adrian Mariano
2022-04-08 19:37:46 -04:00
parent cca4fad3ef
commit 82aa485045
14 changed files with 904 additions and 847 deletions

View File

@@ -120,6 +120,10 @@ test_is_decreasing();
module test_find_approx() {
assert(find_approx(1, [2,3,1.05,4,1,2,.99], eps=.1)==2);
assert(find_approx(1, [2,3,1.05,4,1,2,.99], all=true, eps=.1)==[2,4,6]);
assert(find_approx(1, [2,3,4])==undef);
assert(find_approx(1, [2,3,4],all=true)==[]);
assert(find_approx(1, [])==undef);
assert(find_approx(1, [], all=true)==[]);
}
test_find_approx();