2079 Commits

Author SHA1 Message Date
Jos de Jong
52bcd8fee0 feat: upgrade to fraction.js@5.2.1 and implement support for log(x: Fraction, base: Fraction) 2024-11-20 11:57:10 +01:00
Jos de Jong
e93780e6d5 Merge branch 'develop' into v14 2024-11-20 11:41:30 +01:00
Jos de Jong
67ddc724e1 fix: #3260 improve type definitions and documentation on the callback indices of map, filter, and forEach 2024-11-20 11:32:11 +01:00
Jos de Jong
e00d3678c6 fix: #3323 support functions in function clone 2024-11-20 10:34:59 +01:00
Jos de Jong
6cf8a2744c Merge branch 'develop' into v14 2024-11-13 10:16:33 +01:00
Neeraj Kumawat
f6a065718b
fix: #1455 implicit multiplication of a fraction with unit 'in' is incorrect (#3315) 2024-11-13 08:47:19 +01:00
Neeraj Kumawat
d0f8b2b800
fix: #3301 precedence of % (mod) is higher than * and / (#3311) 2024-11-07 12:08:35 +01:00
Jos de Jong
ab2bc16718 chore: more logging output for the LambdaTests 2024-11-07 09:06:28 +01:00
Jos de Jong
6e8b65f89a chore: run LambdaTest tests in parallel 2024-11-07 09:04:49 +01:00
Orel Ben Neriah
b10e3169c6
fix: #3098 updates MathArray types to be n-dimensional (#3306) 2024-11-07 08:44:03 +01:00
Neeraj Kumawat
eb5e4932c1
fix #3290: should validate variables names in the method Parser.set (#3308)
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-11-06 17:41:50 +01:00
Jos de Jong
301d00e8a5
feat: upgrade to fraction.js@5 (#3312) 2024-11-06 17:25:31 +01:00
Jos de Jong
ca891837f9 Merge branch 'develop' into v14
# Conflicts:
#	package-lock.json
#	package.json
2024-11-06 17:18:05 +01:00
Jos de Jong
22db7d2df3 Revert "feat: upgrade to fraction.js@5 (#3283)"
This reverts commit 9b81230950b5bed113817dc4ec7803df7e51313e.
2024-11-06 17:14:16 +01:00
Jos de Jong
9b81230950
feat: upgrade to fraction.js@5 (#3283) 2024-11-06 17:08:26 +01:00
Jos de Jong
837769c748
fix: #3222 prevent math.import from overriding units (#3225) 2024-11-06 17:05:35 +01:00
Akki
66775ee8b5
fix: #3219 updated matAlgo07xSSf algorithm to return sparse matrix (#3307) 2024-11-06 17:02:02 +01:00
Jos de Jong
0d2b8eb4af chore: disable failing testing on android 2024-11-06 16:57:28 +01:00
Jos de Jong
0dbb9cf8a7 chore: disable failing testing on safari 2024-11-06 16:46:20 +01:00
Jos de Jong
986884d386 chore: try fix testing on Galaxy S10 2024-11-06 16:18:30 +01:00
Jos de Jong
51bf538529 chore: test on Safari, Edge, and a Galaxy S10 2024-11-06 16:13:46 +01:00
Jos de Jong
cc9dbfe2fe chore: disable testing on Edge for now 2024-11-04 12:58:49 +01:00
Jos de Jong
de3a30eb56 chore: fix HyperExecute config 2024-11-04 12:54:52 +01:00
Jos de Jong
73bd53dfa0 chore: fix HyperExecute config 2024-11-04 12:49:41 +01:00
Jos de Jong
04643326df chore: fix HyperExecute config 2024-11-04 12:48:33 +01:00
Jos de Jong
ac5fd87a00 chore: oops run HyperExecute on windows instead 2024-11-04 12:45:06 +01:00
Jos de Jong
19d1c227a5 chore: remove matrix in HyperExecute config 2024-11-04 12:43:00 +01:00
Jos de Jong
0064d01e7a chore: configure HyperExecute to start on one OS only 2024-11-04 12:28:52 +01:00
Jos de Jong
c265fbd5c4 chore: configure HyperExecute to test on different browsers and platforms 2024-11-04 12:27:21 +01:00
Jos de Jong
a95102f551 chore: configure HyperExecute to test on different browsers 2024-11-04 12:21:52 +01:00
Jos de Jong
a9e5a208d0 chore: cleanup HyperExecute error reporting 2024-11-04 11:54:25 +01:00
Jos de Jong
e3d40abd82 chore: test HyperExecute error reporting 2024-11-04 11:53:58 +01:00
Jos de Jong
e30624bc4a chore: some updates in the LambdaTest config 2024-11-04 11:37:43 +01:00
Jos de Jong
aa6f41be99 fix: Index.dimension(dim) accepting non-numeric input 2024-11-04 10:54:58 +01:00
Jos de Jong
dd0eac640e chore: fix linting issues 2024-10-23 10:30:07 +02:00
gauravchawhan
f76c751f34
chore: hyperexecute Integrations (#2874) 2024-10-23 10:26:58 +02:00
Orel Ben Neriah
9dca98b0c3
feat: adds unit support to ceil, floor, and fix functions (#3269)
BREAKING CHANGE:
The matrix types now support generics. For most practical cases, this doesn't cause a breaking change, but it is possible that it breaks typings in some specific edge cases.
2024-10-21 12:50:17 +02:00
Jmar L. Pineda
7f810d1b7e
feat: speed up the map() and forEach() functions in DenseMatrix.js (#3251)
* Optimize the map and forEach functions in DenseMatrix.js

* Changed index back to Array from Uint32Array and clone it using index.slice(0) instead of [...index]

* Fixed merge conflicts with the fast callback optimization

* Fixed the documentation for _forEach()

* Fixed _forEach comment and made it return an immutable index array

* Resolved DenseMatrix unit test suggestions

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-09-27 14:36:45 +02:00
Jos de Jong
fb76ac419d fix: #3267 implicit multiplication with a negative number and unit in 2024-09-18 11:08:29 +02:00
David Contreras
367c0d3d1e
chore: improve performance of functions map, filter and forEach (#3256)
* Implement reduceCallback

* Add jsdocs

* implement simplifyCallback in other functions

* Moved recurse to array.js

* Format

* Separate transform callback

* forEach transform

* Renamed applyCallback to simplifyCallback

* Simplified index transform

* renamed to reducedCallback and simplifiedCallback to simpleCallback

* chore: fix linting issue

* Added forEach benchmark

* renamed simplifyCallback to optimizeCallback

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-09-11 11:32:17 +02:00
Jos de Jong
0f87a7b6c3 chore: fix linting issue 2024-09-04 16:17:09 +02:00
Jos de Jong
76e23d1954 chore: extend the map.js benchmark 2024-09-04 16:11:34 +02:00
Jos de Jong
d1ecf44e2f fix: #3253 cannot use identifiers containing special characters in function derivative 2024-09-04 12:19:46 +02:00
Jos de Jong
4c64018a79 fix: #3246 add type definitions for function leafCount 2024-09-04 11:35:39 +02:00
Jos de Jong
4d91f10095 fix: #3259 function symbolicEqual missing in the TypeScript definitions 2024-09-04 11:06:21 +02:00
Jos de Jong
6b743d07b8 chore: fix broken benchmark 2024-09-04 10:01:43 +02:00
Jos de Jong
ed2cce4d17
fix: various security vulnerabilities (#3255)
* fix: disable parser functions in the CLI (security issue)

* fix: ensure `ObjectWrappingMap` doesn't allow deleting unsafe properties (security issue)

* fix: enable using methods and (safe) properties on plain arrays

* docs: update the "Less vulnerable expression parser" section in the docs

* chore: fix typos and linting issues

* chore: keep functions like `simplify` enabled in the CLI

* docs: update the security page

* fix: ensure `ObjectWrappingMap.keys` cannot list unsafe properties

* fix: when overwriting a rawArgs function with a non-rawArgs function it was still called with raw arguments

* docs: fix a typo
2024-08-27 16:42:46 +02:00
David Contreras
bcf0da46f0
feat: support multiple inputs in function map (#3228) 2024-08-22 13:35:21 +02:00
Jos de Jong
88a4b35e9d chore: add a benchmark testing DenseMatrix.map(...) and DenseMatrix.forEach(...) (see #3251) 2024-08-21 14:59:09 +02:00
David Contreras
459ae13725
docs: spelling fixes in the embedded docs (#3252)
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-08-21 14:30:40 +02:00