SDDSlib
|
Provides functions to compute the factorial of a number. More...
#include "mdb.h"
Go to the source code of this file.
Functions | |
long | factorial (long n) |
Computes the factorial of a given number. | |
double | dfactorial (long n) |
Computes the factorial of a given number as a double. | |
Provides functions to compute the factorial of a number.
Definition in file factorial.c.
double dfactorial | ( | long | n | ) |
Computes the factorial of a given number as a double.
This function calculates the product of all positive integers up to n
and returns the result as a double
.
n | The number for which the factorial is to be computed. |
n
as a double
. Definition at line 43 of file factorial.c.
long factorial | ( | long | n | ) |
Computes the factorial of a given number.
This function calculates the product of all positive integers up to n
.
n | The number for which the factorial is to be computed. |
n
as a long
integer. Definition at line 26 of file factorial.c.