jos
|
ece963bcdd
|
Merge branch 'develop' into v4
# Conflicts:
# lib/expression/node/ConstantNode.js
|
2018-01-31 11:28:14 +01:00 |
|
Max Bruckner
|
9126130794
|
toTex: Escape special characters in strings
|
2018-01-31 02:54:24 +01:00 |
|
Max Bruckner
|
4a7e956242
|
ConstantNode: Add Fraction specific latex output.
|
2018-01-25 20:14:06 +01:00 |
|
jos
|
f112348eec
|
Fixed using the wrong typeof function which was not aware of mathjs types like BigNumber (see #1023)
|
2018-01-25 20:07:07 +01:00 |
|
jos
|
3f3d50f7a0
|
Fixed #833: the constants true, false, null, undefined, NaN, Infinity, and uninitialized are now parsed as ConstantNodes instead of SymbolNodes in the expression parser
|
2018-01-23 13:55:57 +01:00 |
|
jos
|
924299c42b
|
Changed ConstantNode(valueStr, valueType) to ConstantNode(value) (breaking change)
|
2018-01-23 12:08:29 +01:00 |
|
jos
|
8b5396baad
|
Removed the old expression compiler (which uses eval)
|
2018-01-23 09:19:11 +01:00 |
|
jos
|
1192bb6bbc
|
Implemented compile without eval (see #1019)
|
2018-01-21 18:13:27 +01:00 |
|
Nekomajin42
|
9678d1a067
|
Change escape-goat to native escape function
|
2017-06-06 12:06:58 +02:00 |
|
Nekomajin42
|
e7aa5b4ec9
|
fix the escaping errors
|
2017-06-01 16:02:20 +02:00 |
|
Nekomajin42
|
e18cca6153
|
Revert "Revert "Use escape goat""
This reverts commit f83c88237f02edf7595e375606c1a0eaaa6ce50c.
|
2017-06-01 08:36:04 +02:00 |
|
Nekomajin42
|
f83c88237f
|
Revert "Use escape goat"
This reverts commit 51e1b601b64d0bb782590e95c7a74bbb7fb179ff.
|
2017-06-01 08:35:47 +02:00 |
|
Nekomajin42
|
51e1b601b6
|
Use escape goat
|
2017-06-01 08:19:16 +02: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
|
27660d8c00
|
Some more security measures
|
2017-05-05 21:08:23 +02:00 |
|
jos
|
73b774a51b
|
Use safe map, forEach, join
|
2017-05-05 12:32:21 +02:00 |
|
jos
|
19faeac16c
|
Escape function names and properties
|
2017-04-24 21:36:00 +02:00 |
|
jos
|
c259c936ec
|
Refactored compile into a factory function
|
2017-04-22 17:12:38 +02:00 |
|
jos
|
a7bd4cd833
|
Register _compile as separate functions
|
2017-04-22 16:49:22 +02:00 |
|
jos
|
15aca5e4d0
|
Changed casing of the values of config options number and matrix to match the actual name of the classes.
|
2016-03-04 19:41:54 +01:00 |
|
jos
|
9ffab397b6
|
Fixed #485: Scoping issue with variables both used globally as well as in a function definition
|
2015-11-28 21:20:25 +01:00 |
|
jos
|
2353c4a61e
|
Renamed folders util to utils
|
2015-07-18 13:22:38 +02:00 |
|
jos
|
6c7bf4acf0
|
Removed boolean, string, and null from the list with argument types, only leaving the directly supported types (which types can be converted to supported types is determined externally). Consistently renamed primitive types lower case (boolean, string, number, null) and non-primitive types uppercase (Complex, BigNumber, Function, Array, ...).
|
2015-05-20 21:08:26 +02:00 |
|
Max Bruckner
|
3f217cefdd
|
toTex: no global configuration. Only pass around one local object
|
2015-05-16 13:30:25 +02:00 |
|
Max Bruckner
|
c0e1b2d268
|
toString: no global configuration. Only pass around one local object
|
2015-05-16 13:29:55 +02:00 |
|
Max Bruckner
|
a347405a98
|
toString: implement callbacks and local configuration
|
2015-05-16 13:28:51 +02:00 |
|
Max Bruckner
|
291d620972
|
Pass local configuration to toTex functions
|
2015-05-16 13:27:48 +02:00 |
|
jos
|
0c1e9deeeb
|
Implemented configuration value {number: 'fraction'}. Added docs and example for fractions.
|
2015-05-12 14:40:47 +02:00 |
|
Max Bruckner
|
6235fd6ce1
|
Make toString a wrapper around _toString
This enables preparating the node tree in `toString` before generating
the actual string output with `_toString` methods
|
2015-04-30 00:12:54 +02:00 |
|
Max Bruckner
|
8282f424c2
|
Use the prototype for is<Node> instead of the constructor
|
2015-04-28 20:13:53 +02:00 |
|
Max Bruckner
|
390a0060b4
|
Add is<NameOfNode> property to enable type checking across constructors
|
2015-04-28 09:14:53 +02:00 |
|
Max Bruckner
|
ca4a0bfda4
|
Change LaTeX output of string function
toTex shouldn't do operations like toString on the node tree
|
2015-04-27 10:09:42 +02:00 |
|
jos
|
d3d3212633
|
Refactored all nodes into factory functions (see #342)
|
2015-04-26 21:25:31 +02:00 |
|
jos
|
6e96d5a808
|
Merge branch 'develop' into v2
Conflicts:
HISTORY.md
bower.json
component.json
dist/math.js
dist/math.map
dist/math.min.js
lib/function/arithmetic/abs.js
lib/function/probability/gamma.js
lib/version.js
package.json
|
2015-04-22 21:43:56 +02:00 |
|
Max Bruckner
|
1c73dc1262
|
ConstantNode.toTex: simplify exponential notatian and add test
|
2015-04-19 09:49:09 +02:00 |
|
jos
|
8a68bb56e4
|
Merged math.js v1.5 into v2. Format support of functions eye and diag still needs to be fixed
|
2015-03-31 22:07:47 +02:00 |
|
jos
|
5cab0641e9
|
Simplified the factory structure a little bit. Reworked reviver and BigNumber to factories
|
2015-03-26 21:03:55 +01:00 |
|
Max Bruckner
|
e04dfd26bc
|
Rename customFuncions to callbacks
|
2015-03-17 18:30:26 +01:00 |
|
Max Bruckner
|
35ce7f7fb4
|
Make Node.toTex a wrapper like Node.compile
Node.prototype.toTex is now a wrapper that calls the node's _toTex
|
2015-03-13 21:23:14 +01:00 |
|
Max Bruckner
|
37c1363c2d
|
Pass callbacks to toTex functions
|
2015-03-13 21:23:13 +01:00 |
|
jos
|
70a476c357
|
Replaced all require('decimal.js') with require('../type/BigNumber'), containing the toJSON and fromJSON methods for BigNumber
|
2015-02-18 20:41:27 +01:00 |
|
jos
|
a1f60db0d1
|
Created Node.map, changed traverse to use Node.map
|
2014-11-14 11:25:48 +01:00 |
|
jos
|
20c96894ab
|
Enforcing implementation of _traverse on Nodes
|
2014-11-13 22:16:57 +01:00 |
|
jos
|
95a49fe156
|
Node.transform first clones the node tree
|
2014-10-11 21:59:47 +02:00 |
|
jos
|
40986a1325
|
Using strict mode now in all files (added 'use strict'; on top of every file)
|
2014-07-18 23:19:14 +02:00 |
|
jos
|
5e1cfbf545
|
Implemented implicit multiplication. Fixed a bug with multiplying non-valued temperatures with a number
|
2014-06-30 13:43:50 +02:00 |
|
jos
|
a2a9651d14
|
Added some comments
|
2014-06-23 11:55:36 +02:00 |
|
jos
|
7c761e390a
|
Refactored ConstantNode to make it more flexible to various types of input
|
2014-06-23 11:51:01 +02:00 |
|
Niels Heisterkamp
|
12147b3bd4
|
Some tweaks and fixes
|
2014-05-19 19:27:42 +02:00 |
|
Niels Heisterkamp
|
b7fe0bfbf1
|
Added LaTeX conversion of expressions using toTex() on expression.
Also added some basic tests, which cover some use cases; but should be expanded.
|
2014-05-19 08:20:06 +02:00 |
|