1427 Commits

Author SHA1 Message Date
Kunal Vyas
58cfb20ffd Wrote unit tests
- Added intersect.js file in lib/expression/docs
- added an entry in the index.js file in expression/docs
- modified intersect.js to give appropriate error messages
- added an entry in lib/math.js so that the test case file could find
the function
- wrote the test cases for intersect
2015-06-06 22:44:32 -04:00
Kunal Vyas
44175b5c5b changed indentation from 4 to 2 space 2015-06-04 19:44:01 -04:00
Kunal Vyas
d2230e519c Added intersection function
Computes:
- Line and line intersection in 2D and 3D
- Line and plane intersection in 3D
2015-05-26 03:28:58 -04:00
jos
cb16feb3db Merge remote-tracking branch 'origin/develop' into develop 2015-05-02 17:27:23 +02:00
jos
f7c5381a13 Fixed Node.transform not recursing over replaced parts of the node tree (see #349). 2015-05-02 17:27:14 +02:00
Jos de Jong
ee6f5212d6 Merge pull request #348 from devanp92/master
[Combinatorics] Support for Bell Numbers
2015-05-01 09:16:01 +02:00
Devan Patel
64a3449d1d Merge branch 'master' of github.com:devanp92/mathjs 2015-04-30 11:32:25 -04:00
jos
84aaada3df Updated contributor list 2015-04-28 21:23:45 +02:00
Jos de Jong
e43c52677e Merge pull request #344 from devanp92/master
Adding Combinatorics module + Stirling numbers of Second Kind
2015-04-28 21:21:12 +02:00
Devan Patel
0b31d14a39 Update stirlingS2.js 2015-04-27 18:09:51 -04:00
Devan Patel
2aa2f29e2b Adding support for Bell Numbers in Combinatorics Module. 2015-04-27 12:41:04 -04:00
Devan Patel
9c60e14a84 Adding LaTeX test for Stirling Numbers of the second kind. 2015-04-27 12:14:45 -04:00
Devan Patel
ea6bb033eb Renaming stirlingSecondKind to stirlingS2 + changing LaTeX to "\\mathrm{S}\\left(%0%,%1%\\right)" 2015-04-27 12:06:12 -04:00
Max Bruckner
8390ce7d5c Merge pull request #341 from FSMaxB/repl
Add REPL (Read Evaluate Print Loop) to ease interactive debugging
2015-04-27 13:51:38 +02:00
Devan Patel
b889c16b81 Adding Combiantorics module + Stirling numbers of Second Kind + test. Needs functionality for BigNumber (commented out). 2015-04-26 12:14:46 -04:00
Max Bruckner
49697b3b54 Add documentation for REPL 2015-04-26 14:55:07 +02:00
Max Bruckner
231c16bfd0 Add REPL (Read Evaluate Print Loop) to ease interactive debugging 2015-04-26 14:27:05 +02:00
Max Bruckner
51cbf7eaa8 Include --tex and --string in the documentation of the cli 2015-04-26 14:26:00 +02:00
jos
f1215aea82 Updated history 2015-04-26 13:21:03 +02:00
Max Bruckner
f9a2118da0 bin/cli: Add execute permission 2015-04-26 00:44:26 +02:00
Max Bruckner
32d507d123 functions/statistics/median: test for issue (#309)
This is a test to check that median doesn't mutate it's input
2015-04-26 00:07:29 +02:00
Max Bruckner
881ff20097 util/array: make flatten not mutate the input (see #309) 2015-04-26 00:03:36 +02:00
Max Bruckner
637d728f59 zeros: fix typo in error message (eye --> zeros) 2015-04-25 21:25:46 +02:00
Jos de Jong
d095889ea6 Merge pull request #336 from FSMaxB/cli
`toTex` and `toString` support for the command line interface
2015-04-24 13:53:41 +02:00
Max Bruckner
a625137a20 cli: implement --tex and --string options 2015-04-24 13:32:04 +02:00
Max Bruckner
abeecacd55 cli: infrastructure for parsing multiple commandline options
As a side effect this enables specifying multiple scripts.
2015-04-24 13:07:25 +02:00
jos
d77018ad41 Bumped version number to 1.6.1-SNAPSHOT 2015-04-22 21:33:58 +02:00
jos
30ff006b12 Released version 1.6.0 v1.6.0 2015-04-22 21:13:53 +02:00
jos
084c28c3f9 Minor improvement in abs (see #330) 2015-04-22 21:03:11 +02:00
Jos de Jong
95c4e33f81 Merge pull request #330 from FSMaxB/abs-fix
Fix #328 abs(0+0*i) evaluates to NaN
2015-04-22 15:02:24 +02:00
Max Bruckner
7435e91529 Fix Bug #328 abs(0+0i) evaluates to NaN
This is a quick fix. This might need a better solution though (
numerical instabilities still remain ).
2015-04-22 14:36:24 +02:00
Jos de Jong
0dc0ad3a6f Merge pull request #326 from FSMaxB/latex
Bugfixes, simplifications and other improvements in the LaTeX output
2015-04-19 13:50:43 +02:00
Max Bruckner
8ad525b66e util/latex: get rid of many unnecessary curly braces 2015-04-19 11:08:00 +02:00
Max Bruckner
efdc0ac6be latex: remove unnecessary curly braces in static lists 2015-04-19 10:12:38 +02:00
Max Bruckner
9c606c044f latex.toSymbol: get rid of unnecessary curly braces and wire up units 2015-04-19 09:56:40 +02:00
Max Bruckner
ee4486c3df SymbolNode.toTex: Prevent symbols from breaking operators
If a symbol comes after an operator like '\cdot', there needs to be a
space in between, otherwise the cdot won't get recognized by the LaTeX
parser.
2015-04-19 09:49:10 +02:00
Max Bruckner
1c73dc1262 ConstantNode.toTex: simplify exponential notatian and add test 2015-04-19 09:49:09 +02:00
Max Bruckner
2cd3da416e UpdateNode.toTex: Fix syntax of assignment and fix test 2015-04-19 09:49:09 +02:00
Max Bruckner
55a66aeaaf OperatorNode.toTex: get rid of unnecessary curly braces 2015-04-19 09:49:09 +02:00
Max Bruckner
753a0e7893 IndexNode.toTex: Bugfix: execute toTex on Range Arguments
Also changes the Layout of the LaTeX output of IndexNode.
2015-04-19 09:49:08 +02:00
Max Bruckner
978bc2bc31 FunctionAssignmentNode.toTex: get rid of unnecessary curly braces 2015-04-19 09:49:08 +02:00
Max Bruckner
816b6314a7 AssignmentNode.toTex: get rid of unnecessary curly braces 2015-04-19 02:13:27 +02:00
Max Bruckner
8db07e23ad OperatorNode.toTex: BUGFIX: make clear where the exponent belongs to
Without proper parentheses it's impossible to decide whether an exponent
belongs to the numerator of a fraction or to the entire fraction.

For ConditionalNode, the exponent is hard to see without parentheses.
2015-04-19 02:11:20 +02:00
Max Bruckner
f2bcfed89f LaTeX: no spaces between operands and operators 2015-04-17 14:18:24 +02:00
jos
46bb79b5b9 Update /dist 2015-04-17 13:41:10 +02:00
jos
c8048dad39 Merge remote-tracking branch 'origin/develop' into develop 2015-04-17 09:44:41 +02:00
jos
fd050ffae6 Fixed not being able to override lazy loaded constants 2015-04-17 09:44:31 +02:00
Jos de Jong
a21d8e2797 Merge pull request #325 from FSMaxB/latex-parenthesis
Show less unnecessary parentheses in LaTeX output of OperatorNodes
2015-04-17 09:17:54 +02:00
Max Bruckner
7c1c9c0cef Show less unnecessary parentheses in LaTeX output
OperatorNodes with exponentiation, fractions and conditions use less
parentheses.
2015-04-16 22:31:02 +02:00
Max Bruckner
8747918e1c LaTeX: add additional information about nodes in precedence list
Adds information about the necessity of parentheses for LaTeX output to
the precedence list in lib/expression/operators.js
2015-04-16 22:17:47 +02:00