12 Commits

Author SHA1 Message Date
jos
7df52c1d1a Fixed #983: pickRandom returning an array instead of single value when input was an array with just one value. Clarified docs. 2017-12-09 20:42:08 +01:00
Mathias Polligkeit
832f280196 rewrite pickRandom as typed function 2016-07-18 02:17:27 +02:00
Mathias Polligkeit
fe972bacf6 extend pickRandom function to allow multiple picks and weighted distribution, remove pickMultipleRandom 2016-07-16 17:55:38 +02:00
jos
b2066e53f6 Replaced toTex definitions using the default toTex template with "undefined" and a comment (see #636) 2016-04-15 11:00:03 +02:00
Max Bruckner
21bd67980a Remove LaTeX of probability functions from util/latex.js 2015-06-14 02:23:41 +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
jos
1d5a972a58 Refactored combinations, factorial, gamma, permutations, pickRandom, random, randomInt to typed-functions 2015-04-15 21:30:32 +02:00
jos
41db497289 Removed references in documentation to the "distribution" function 2014-09-08 11:30:48 +02:00
jos
29cc34f1a8 Removed math.distribution for now, needs some rethinking 2014-08-28 21:46:56 +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
7d84e4daf0 Math.js now immediately returns a default instance of mathjs, no need to create an instance every time you want to use the library. 2014-06-20 23:11:14 +02:00
jos
64aa6375f5 Moved functions random, randomInt and pickRandom to a separate file 2014-06-08 22:36:23 +02:00