File ID: 64714
Faster Factorial Description
Description: If you are calling factorial() many times, it is worth to cache the computed factorials.
|More Similar Code|
This function computes log10 of the factorial. Unlike FACTORIAL, it is not limited to arguments less than 171.
Two methods are implemented, one based on the gamma function (thank you, John), as well as a direct sum. The user can choose between the two methods. The gamma method is superior and is therefore the default choice.
The function returns the log10 of the factorial, the mantissa and the exponent of the factorial,...
to find factorial using gui in matlab
If n is a positive integer,factorial(n!) is the product of all the positive integers from 1 up to the given integer.
However, different types of functions are applied,including the anonymous lambda to generate the factorial number, because it...
Intersection of two sets of positive integers (works much faster than built-in intersect)
Set difference of two sets of positive integers (much faster than built-in setdiff) which is great if you have to call it million times in a loop.
I have found that this is on average +20 times faster than 'Gauss-Legendre' file(4560), and easier to read because it is shorter.
This is a faster implementation of MATLAB's corr2. Implemented as a mex-file generated with the ITERATOR tool that can be downloaded from www.mathworks.com
Re compile the source with MEX -O prcorr2.c
C = PRCORR2(A,B)...
This m-file produces random numbers from the negative Binomial distribution using one of four methods and it tests which is faster.
Simple program that makes it faster and easier to solve simultaneous equations using the solve command.
This function is the same as matlab's plot, but much faster for large vectors. Syntax is the same.
Only major drawback is you can't currently save and reload the plots generated without screwing them up.
|User Review for Faster Factorial
All files and free downloads are copyright of their respective owners. We do not provide any hacked, cracked, illegal, pirated version of scripts, codes, components downloads. All files are downloaded from the publishers website, our file servers or download mirrors. Always Virus check files downloaded from the web specially zip, rar, exe, trial, full versions etc. Download links from rapidshare, depositfiles, megaupload etc not published.