Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Database Workbench Pro 5.4.6
Extensibility Studio 3.0
Bytescout Spreadsheet SDK 3.0.0.1699
Magento 2 Admin Mobile App 1.0
Data Compare for MySQL 5.3
ODBC Driver for Zoho CRM 1.3
ODBC Driver for SugarCRM 1.3
Bytescout PDF To HTML SDK 9.0.0.3079
Azizi search engine script PHP 4.1.10
TaxiSoftr - Taxi Booking & Dispatch Software 1.0
VisualNEO for Windows 18.08.31
AnyMap JS Maps 8.4.0
ODBC Driver for MailChimp 1.3
OrgChart JS 3.0.7
AnyStock Stock and Financial JS Charts 8.4.0
Top Code
SQL to Java Code Generator 2.6.7
luxSQL 1.0
Ping Pong Game Code Script 1.1
Dansie Shopping Cart Mall Version
Ozone - Java OODBMS 1.2.1.beta
RabbitBB - Online Web Storage Project 20060513
PHP Choral Music Library 1.5
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Advanced MLM Software 1.2
Online Food Ordeing System 1.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
PHP Point of sale 10.0
Travel Portal Script 9.29
Excel Add-in for Bigcommerce 1.6
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Faster Factorial 
File ID: 64714






Faster Factorial 
Download Faster Factorial http://code.activestate.com/recipes/577241-faster-factorial/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 10
Submit Rating:
Faster Factorial  Description
Description: If you are calling factorial() many times, it is worth to cache the computed factorials.

License: Freeware

Related: factorial

O/S:Windows

Downloads: 10



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.



gaussleg(f,a,b,ngp)

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.

Enjoy

User Review for Faster Factorial
- required fields
     

Please enter text on the image