bmad-sim / bmad-sim/AcceleratorSimUtils.jl
Factorial problem
Open
enhancement
- Dominant language
- Julia
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Julia standard `factorial(n)` function only takes arguments up to `n = 20` since the function returns an `Int64`. `factorial(big(n))` can be used for larger n but this will slow down calculations. So the thought is to write a function `fact(n)` which returns a Float64. This can be used up to `n = 170`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.