Factorial of Large Numbers (>170)
by Nabin S Sharma
01 Nov 2008
Use of Symbolic Math Toolbox to calculate the factorial of large numbers.
|
Watch this File
|
| File Information |
| Description |
The function 'fact' calculates the factorial of a number in an almost non-readable format. Therefore the program assumes that the overall result of a calculation is less than 170! although it involves calculation of factorial of numbers that are greater than 170.
This very simple code was written to solve the Problem 2.11 of "An Introduction to Thermal Physics" by D.V. Schroeder. The file 'example.m' uses the function 'fact.m' to solve the problem. |
| Required Products |
Symbolic Math Toolbox
|
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com