57 Commits

Author SHA1 Message Date
NilsDietrich
48ba6adbca
feat: support for optional chaining object?.key (#3547) 2025-10-29 11:07:52 +01:00
Jos de Jong
a1eec936fc
feat: export util functions for maps and improve documentation of scope (#3243)
* feat: export util functions `isMap`, `isPartitionedMap`, and `isObjectWrappingMap` and improve the documentation of `scope` (see #3150)

* chore: fix broken unit tests

* docs: refine the explanation about scopes
2024-08-01 10:57:23 +02:00
Rohil Shah
a29bab4048
docs: fix misleading documentation for expression tree traverse (#3177)
Callback function for MathNode.traverse() returns void. Documentation says callback must return a replacement for the existing node (possibly copied from transform() above).
2024-03-21 08:43:56 +01:00
Jos de Jong
bc9f4d6243 fix: #2996 two errors in the examples in the documentation about Expression trees 2023-07-10 09:11:57 +02:00
Jos de Jong
b050d5ed5d Fix the docs and types of forEach, which returns void (see #2840) 2022-11-18 10:18:59 +01:00
Jos de Jong
b63d51641d Document SymbolNode.onUndefinedSymbol and FunctionNode.onUndefinedFunction (see #2551) 2022-05-09 09:46:44 +02:00
Jos de Jong
8b3e0e1067 Fix #2255: document the implicit property of OperatorNode 2021-06-23 10:02:33 +02:00
josdejong
ca6aa45a88 Fix typo 2020-06-28 22:14:44 +02:00
josdejong
2df28bb609 Fix #1899: documentation on expression trees still using old namespace
`math.expression.node.*` instead of `math.*`
2020-06-28 22:14:27 +02:00
Tanmay
4c5aa0d23e toHTML() method example corrected. (#1627) 2019-09-21 14:56:10 +02:00
jos
b4f2eb005e Merge remote-tracking branch 'origin/fix/1428' into develop
# Conflicts:
#	HISTORY.md
#	src/function/algebra/simplify.js
2019-05-04 10:07:39 +02:00
jos
6081360d6a Merged develop into modular_architecture 2019-04-13 16:51:51 +02:00
jos
5c263d3dff Fixed #1428: transform iterating over replaced nodes 2019-03-05 21:10:59 +01:00
jos
70cbc3ec30 Replace http urls with https where supported 2019-02-27 13:08:42 +01:00
jos
078f1dd69f Renamed methods .eval to .evaluate, updated all docs and examples accordingly 2019-01-16 10:11:32 +01:00
Eric Mansfield
d23d8c71a4 Chained conditionals (#1267)
* Minimally working

* Added tests, toString

* Added tests for evaluation

* Minor changes

* Added a line in the docs about chained conditionals

* Documentation, replacing var and let with const
2018-10-04 20:26:39 +02:00
jos
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
82b41e696a - Implemented OperatorNode.isUnary and OperatorNode.isBinary.
- Explicit checks for number of arguments everywhere working with `OperatorNode` and `FunctionNode`.
- Fixed #1014: derivative silently ignoring additional arguments.
2018-01-31 11:00:39 +01:00
jos
ae8f61a84b Merge branch 'v4_constant_node' into v4_binary_operator_node 2018-01-31 10:07:10 +01:00
jos
a00b333e00 Fixed some broken links and an example output 2018-01-27 17:18:47 +01:00
jos
924299c42b Changed ConstantNode(valueStr, valueType) to ConstantNode(value) (breaking change) 2018-01-23 12:08:29 +01:00
Nekomajin42
7301b6fcf9 Implement toHTML() to Nodes
toHTML() method to each Node, and update in the docs
2017-05-21 15:47:43 +02:00
jos
34f948f808 Fixed an issue in a code example in the docs 2017-04-22 12:56:56 +02:00
jos
db67f4cb84 Removed method Node.simplify() (use function simplify instead) 2017-01-22 13:42:19 +01:00
jos
5c5b83988e Updaed docs of Node.simplify 2017-01-21 20:35:20 +01:00
jos
71ae3ea076 Consistent API for both derivative and simplify (dropped transform) 2017-01-20 21:43:40 +01:00
Maxired (Maxence Dalmais)
daf7494512 add missing parentheses 2016-12-14 11:14:13 +01:00
jos
e0123c7355 Implemented a method cloneDeep for the expression Nodes. See #745. 2016-11-18 15:37:07 +01:00
jos
4306200c4c Implemented method Node.equals(other) for all nodes of the expression parser 2016-11-05 16:27:23 +01:00
jos
23d1786cb2 Comments of expressions are are now stored in the parsed nodes, see #690 2016-08-23 21:12:39 +02:00
jos
0bdbcaec69 A minor fix in the docs 2016-04-25 22:04:21 +02:00
jos
aaa153d9e9 Some minor fixes in the docs 2016-03-19 13:15:01 +01:00
jos
a60a70e6b9 Store dot notation in IndexNode 2016-02-27 11:36:47 +01:00
jos
89e1238fed Implemented read-only name-properties for AccessorNode and AssignmentNode, improved the name property of FunctionNode 2016-02-27 11:17:34 +01:00
jos
dc1e800314 Updated docs and history on expression parser nodes 2016-02-26 21:03:04 +01:00
jos
fad5d8cc07 Merged parseFunctions and parseIndex into parseAccessors. Restricted support for implicit multiplication, execute as accessors instead 2016-01-09 21:11:29 +01:00
jos
b7bd078def Added name property to UpdateNode 2016-01-08 22:27:19 +01:00
jos
99552744f6 Added docs and an example on objects 2016-01-03 19:47:41 +01:00
Veaceslav Grimalschi
30f3be4a26 Documentation fix
FunctionNode has `name: string` property instead of `symbol: Node`
2015-08-06 08:40:11 +03:00
jos
f19cfb4394 Reintroduced node.eval(scope). Updated some docs and examples 2015-07-18 10:21:48 +02:00
jos
f469795d3b Fixed a typo in the docs 2015-06-23 20:18:38 +02:00
jos
c810981238 Method Node.compile() no longer needs math to be passed as argument. 2015-05-27 13:30:35 +02:00
Max Bruckner
6574468c3a Document options parameter of toString and toTex 2015-05-17 21:29:19 +02:00
Max Bruckner
51cfc0b779 Update documentation (ParenthesisNode and parenthesis config option) 2015-05-08 09:07:25 +02:00
jos
1ee3e45ec4 Added some more docs on BlockNode 2014-12-26 15:01:59 +01:00
jos
2385efef31 Fixed a typo in the docs 2014-12-02 10:33:08 +01:00
jos
e0268b7be8 Fixed markdown indentation issues in the docs 2014-11-16 15:05:36 +01:00
jos
50fe486102 Inserted spaces 2014-11-16 14:53:56 +01:00
jos
3268cdfb03 Added empty lines around fenced code blocks, gives issues with some markdown parsers 2014-11-16 14:46:02 +01:00
jos
9257ec3c33 Added unit tests for Node.map and Node.forEach 2014-11-15 13:16:32 +01:00