702 Commits

Author SHA1 Message Date
Devan Patel
adc96a9b2e Adding permutation type 2015-05-07 13:48:47 -04:00
Devan Patel
fc693b469b Adding permutation type 2015-05-05 00:18:13 -04:00
Devan Patel
4dad1fed3d Fixing BigNumber for possible IntegerOverflow. I have updated tests as well. 2015-05-04 15:59:26 -04:00
Devan Patel
b05a0a0f7e Adding support for compositions + test (includes support for BigNumber). 2015-05-03 15:29:42 -04:00
Devan Patel
aa48a5f5cd Adding support for BigNumber in StirlingS2 and BellNumbers. 2015-05-03 15:02:49 -04:00
Devan Patel
64a3449d1d Merge branch 'master' of github.com:devanp92/mathjs 2015-04-30 11:32:25 -04: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
ea6bb033eb Renaming stirlingSecondKind to stirlingS2 + changing LaTeX to "\\mathrm{S}\\left(%0%,%1%\\right)" 2015-04-27 12:06:12 -04: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
jos
30ff006b12 Released version 1.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
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
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
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
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
Jos de Jong
919f30fab4 Merge pull request #324 from FSMaxB/latex-restructure-bugfix
Fix bug that was introduced by the restructuring of the LaTeX code
2015-04-15 15:35:41 +02:00
Max Bruckner
5780635bb8 util/latex: bugfix: error when handling symbols with indices 2015-04-15 14:03:08 +02:00
Nick Foti
020a47c938 Corrected gamma documentation to allow argument to be real or complex. 2015-04-14 14:40:43 -07:00
Jos de Jong
bc6f63b6c9 Merge pull request #318 from FSMaxB/latex-restructure
Restructure and complete the LaTeX generator.
2015-04-13 09:39:16 +02:00
Max Bruckner
2076bebdb0 util/latex: Make use of templates based on number of arguments 2015-04-13 00:39:03 +02:00
Max Bruckner
29fd97839f util/latex: Use Template/Callback based on number of arguments 2015-04-13 00:07:56 +02:00
Max Bruckner
240eeecccd lib/util: Move over from callbacks to templates 2015-04-12 23:44:26 +02:00
Max Bruckner
8b5ed85875 util/latex: Get rid of defaultToTex and replace it with defaultTemplate 2015-04-12 13:43:29 +02:00
Max Bruckner
efdf153022 util/latex: Use %% for % in templates 2015-04-12 13:31:09 +02:00
Max Bruckner
14347ed610 util/latex: New template variable for comma separated list of arguments
You can now use '%*%' to get a comma separated list of all arguments
2015-04-12 13:31:06 +02:00
Max Bruckner
34046e22d9 util/latex: Enable templates for LaTeX output of functions.
You can now use templates containing '%name%' and '%0%', '%1%' ...
to define the LaTeX of a function.
2015-04-12 13:30:34 +02:00
jos
f7fe2f9ffd Bumped version number to 1.5.3-SNAPSHOT 2015-04-09 21:23:20 +02:00
jos
d043d24abe Released v1.5.2 2015-04-09 21:17:28 +02:00
jos
e2bd50723d Fixed #251: binary prefix and SI prefix incorrectly used for byte. Now following SI standards (1 KiB == 1024 B, 1 kB == 1000 B) 2015-04-09 20:36:51 +02:00
jos
3150e21c8e Fixed #313: parsed functions did not handle recursive calls correctly 2015-04-09 20:29:51 +02:00
jos
cb6f52ad8f Bumped version number to 1.5.2-SNAPSHOT 2015-04-08 09:30:12 +02:00
jos
8dccb60f30 Released version 1.5.1 2015-04-08 09:17:18 +02:00
jos
5dfa79196e Some more fixes and improvements in NumberFormatter 2015-04-07 22:16:47 +02:00
jos
2cdeb0d49b Save digits as number instead of string 2015-04-06 21:17:39 +02:00
jos
f773df0fc6 Fixed #317 (formatting negative values), fixed #316 (round-off errors in formatting values) 2015-04-06 21:08:21 +02:00
Max Bruckner
9acccce315 util/latex: change comments 2015-04-05 14:29:16 +02:00