factorial

package module
v0.0.0-...-248c5f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2018 License: MIT Imports: 2 Imported by: 0

README

Factorial

Build Status codecov Go Report Card

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.

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

func Factorial(n int64) *big.Int

Factorial calculates the factorial of n. The calculation is done sequentially. If n < 0, -1 is returned.

func ParallelFactorial

func ParallelFactorial(n int64) *big.Int

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL