Miscellaneous Mathematic functions
Compute
Recursively compute the factorial of a 16-bit integer. The max value that can be passed is 7 If x is less than 0 or greater 7, the function will return 0
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int16), | intent(in) | :: | x |
|
Recursively compute the factorial of a 32-bit integer. The max value that can be passed is 16 If x is less than 0 or greater 16, the function will return 0
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int32), | intent(in) | :: | x |
|
Recursively compute the factorial of a 64-bit integer. The max value that can be passed is 20 If x is less than 0 or greater 20, the function will return 0
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int64), | intent(in) | :: | x |
|
Recursively compute the factorial of a 128-bit integer [supported on gfortran]. The max value that can be passed is 33 If x is less than 0 or greater 33, the function will return 0
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int128), | intent(in) | :: | x |
|
Compute
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real32), | intent(in) | :: | x_ | |||
integer, | intent(in) | :: | n_ |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | x_ | |||
integer, | intent(in) | :: | n_ |
Compute using a truncated taylor series
Compute using a taylor series with 12 terms
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real32), | intent(in) | :: | x |
Calculate using a taylor series with 20 terms
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | x |
Recursively compute the factorial of a 16-bit integer. The max value that can be passed is 7 If x is less than 0 or greater 7, the function will return 0
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int16), | intent(in) | :: | x |
|
Recursively compute the factorial of a 32-bit integer. The max value that can be passed is 16 If x is less than 0 or greater 16, the function will return 0
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int32), | intent(in) | :: | x |
|
Recursively compute the factorial of a 64-bit integer. The max value that can be passed is 20 If x is less than 0 or greater 20, the function will return 0
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int64), | intent(in) | :: | x |
|
Recursively compute the factorial of a 128-bit integer [supported on gfortran]. The max value that can be passed is 33 If x is less than 0 or greater 33, the function will return 0
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int128), | intent(in) | :: | x |
|
Compute using a taylor series with 12 terms
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real32), | intent(in) | :: | x |
Calculate using a taylor series with 20 terms
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | x |
Compute sine using a truncated taylor series
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | x_ | Angle in degrees |
||
integer, | intent(in) | :: | n_ | Number of terms to use |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real32), | intent(in) | :: | x_ | |||
integer, | intent(in) | :: | n_ |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | x_ | |||
integer, | intent(in) | :: | n_ |
Update current F number Update previous two numbers
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int64), | intent(in) | :: | n | Nth fibonacci to compute |