Be the first to rate this file! 6 Downloads (last 30 days) File Size: 1.91 KB File ID: #21965

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.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
numerical analysis Nabin S Sharma 01 Nov 2008 21:05:43

Contact us at files@mathworks.com