Documentation
¶
Overview ¶
Package factorial allows for users to calculate the factorial of any int64 in the form of a big.Int. The calculations can be done sequentially or concurrently.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Factorial ¶
Factorial calculates the factorial of n. The calculation is done sequentially. If n < 0, -1 is returned.
func ParallelFactorial ¶
ParallelFactorial calculates the factorial of n. The calculation is done concurrently. A go routine is created for each proc. If n < 0, -1 is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.