Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
arithmatic
main
Arithmatic
Factorization
Int32
Numbers
InvalidRationalInitializationException
Rational
PowerProduct
PrimesRepo
Utils
Built with Crystal 1.9.2
2023-10-07 16:28:25 UTC
module
Utils
Defined in:
utils.cr
Class Method Summary
.gcd
(a : Int32 | UInt32, b : Int32 | UInt32)
.gcd
(integers : Array(Int32 | UInt32))
.quotients_from_division_by_gcd
(integers : Array(Int32 | UInt32))
Class Method Detail
def self.
gcd
(a :
Int32
| UInt32, b :
Int32
| UInt32)
#
[
View source
]
def self.
gcd
(integers : Array(
Int32
| UInt32))
#
[
View source
]
def self.
quotients_from_division_by_gcd
(integers : Array(
Int32
| UInt32))
#
[
View source
]