package
Version:
v0.1.10
Opens a new window with list of versions in this module.
Published: Dec 23, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package extmath extend math
Gcd get Greatest Common Divisor
GcdSlice get Greatest Common Divisor
Gcdx get Greatest Common Divisor
Lcm get least common multiple
Pow is int64 type of math.Pow function.
func Range(start, end int) []int
Range 根据范围创建数组,包含指定的元素.
start: 起始元素值
end: 末尾元素值
若start<end,返回升序的数组
若start>end,返回降序的数组.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.