1739 Commits

Author SHA1 Message Date
Thomas Brierley
badc6efc1a Update tests for isSafe changes
+ Fix "calling Function via Object.assign" test. Now fails on accesing
"bind" first because new implementation is a bit more restrictive.

+ Fix "extend the class instance". Custom methods on instances are now
allowed and ghosting (overridding) is explicitly not.

+ Add ghosting tests for class instances and plain objects.
2017-06-29 15:53:49 +01:00
jos
0557e7ae1f Back to compareNatural WIP (see #837) 2017-06-25 21:02:59 +02:00
jos
ae7728a1d4 Renamed compareNatural to deepStrictCompare 2017-06-23 13:50:27 +02:00
jos
033735c5e2 Implemented support for all types in compareNatural 2017-06-23 13:40:38 +02:00
jos
d85f54cf77 Reverted ordering of complex numbers in relational functions. Use natural sort in set functions (See #837) 2017-06-18 21:42:55 +02:00
jos
151bc655d6 Implemented a first version of math.compareNatural 2017-06-18 21:13:31 +02:00
Jos de Jong
e98a810aef Merge pull request #869 from Nekomajin42/setopsv4
setops v4
2017-06-18 14:53:04 +02:00
Jos de Jong
9c50d38503 Merge branch 'develop' into toHTML 2017-06-06 20:11:20 +02:00
Nekomajin42
9678d1a067 Change escape-goat to native escape function 2017-06-06 12:06:58 +02:00
Nekomajin42
fc9018457f setops v4
- using sort() again
- update the tests with unsorted input
2017-06-06 11:50:50 +02:00
Jos de Jong
777b347178 Merge pull request #852 from gulfaraz/complex_comparision
support to compare complex numbers #837
2017-06-05 17:01:39 +02:00
Gulfaraz Yasin
7446181081 clean up 2017-06-05 17:20:28 +05:30
Gulfaraz Yasin
f42f7feffc static implementation of complex comparision 2017-06-05 11:58:27 +05:30
ericman314
e96cad0370 Corrects round-off errors in splitUnit 2017-06-04 22:18:43 -06:00
Gulfaraz Yasin
eda65d2228 used different approach for comparing complex numbers - resolves #837 2017-06-04 22:29:55 +05:30
jos
4e1142a126 Released v3.13.3 2017-05-27 20:56:16 +02:00
jos
bc3febca89 Merge branch 'security' into develop 2017-05-27 20:52:24 +02:00
Jos de Jong
b1afd923b7 Merge pull request #862 from viclai/patch-1
Fixed Bug in Equation For Intersection of Line and Plane
2017-05-27 20:13:18 +02:00
jos
ed5f2cebaf Security fixes in isSafeMethod and some others 2017-05-27 19:51:12 +02:00
viclai
5baa2b8848 Added Unit Test for Intersect Bug 2017-05-27 07:58:32 -07:00
jos
e80ab2d36c Fixed unit tests 2017-05-26 17:14:08 +02:00
jos
627bb2a79d Disabled function chain 2017-05-26 17:11:52 +02:00
jos
959b010242 Simplified isSafeMethod 2017-05-26 16:43:03 +02:00
jos
64498eddd6 Fixed #861: physical constants not available in the expression parser 2017-05-25 16:13:42 +02:00
jos
f61bb6cf94 Fixed #856: function subset not returning non-primitive scalars from Arrays correctly 2017-05-16 21:41:03 +02:00
jos
04ceed6c75 Merge branch 'security' into develop 2017-05-12 20:47:54 +02:00
jos
5991c24620 Fixed broken unit tests 2017-05-12 13:36:03 +02:00
jos
29d632f1d9 Fixed creating units with an alias not working within the expression parser 2017-05-12 13:28:13 +02:00
jos
11eda850da Fixed security vulnerabilities 2017-05-12 09:01:31 +02:00
Gulfaraz Yasin
275b09dce8 support to compare complex numbers #837 2017-05-10 19:05:49 +05:30
Timothy Lee
8c92deb1c3 Added derivative of abs 2017-05-10 17:24:15 +09:30
Jos de Jong
71221b75df Merge pull request #840 from tetslee/fix838
Fixed simplify to recognize named constants
2017-05-09 20:12:28 +02:00
Jos de Jong
3ea3eb7273 Merge pull request #841 from tetslee/fix813
Stop simplify converting numbers to inexact Fractions
2017-05-09 20:07:57 +02:00
Timothy Lee
02f01adf3c Added support for BigNumbers to simplify 2017-05-09 13:20:32 +09:30
Jos de Jong
0dfd667d0d Merge pull request #839 from slavaGanzin/master
cli: inline evaluate
2017-05-08 19:55:16 +02:00
slavaGanzin
fa3aa92156 add tests 2017-05-08 15:15:20 +03:00
Timothy Lee
6f2b5efaac Disallow implicitly converting a number to a fraction that is not an exact representation 2017-05-08 15:58:06 +09:30
Timothy Lee
82095ebc19 Revert "Changed multiply to only output Fractions when both arguments can be exactly represented as Fractions"
This reverts commit f3cb41864582b2dc8b07c07d4c22d6c313bcc114.
2017-05-08 15:57:19 +09:30
Timothy Lee
158adc1861 Added support for more constants in simplify 2017-05-08 12:56:56 +09:30
jos
27660d8c00 Some more security measures 2017-05-05 21:08:23 +02:00
jos
85ac1a0aa4 Some more security measures 2017-05-05 20:53:20 +02:00
jos
aef6203049 Use safe function arguments internally 2017-05-05 17:25:21 +02:00
jos
73b774a51b Use safe map, forEach, join 2017-05-05 12:32:21 +02:00
Timothy Lee
f3cb418645 Changed multiply to only output Fractions when both arguments can be exactly represented as Fractions 2017-05-05 16:30:37 +09:30
Timothy Lee
c47dee1d01 Stopped simplify from explicitly converting numbers to Fractions when they can't be expressed exactly.
It still will implicitly convert to inexact Fractions because of the conversions to Fractions in the typed-functions of binary operators.
2017-05-05 14:54:04 +09:30
Timothy Lee
9e2491e96f Fixed simplify to recognize named constants 2017-05-05 13:44:21 +09:30
jos
9dfbac5565 Fixed a broken unit test on node 0.1, 0.12 2017-04-24 21:57:06 +02:00
jos
b90305992f Merge remote-tracking branch 'origin/develop' into develop 2017-04-24 21:38:12 +02:00
jos
19faeac16c Escape function names and properties 2017-04-24 21:36:00 +02:00
Jos de Jong
692519e330 Fixed wrong formatting of complex NaN (see 804) 2017-04-24 08:39:36 +02:00