Ejemplo n.º 1
0
func main() {
	xs := []float64{1, 2, 3, 4}
	avg := m.Average(xs)
	fmt.Println(avg)
	fmt.Println(m.Min(xs))
	fmt.Println(m.Max(xs))
}
Ejemplo n.º 2
0
func main() {

	xs := []float64{1, 2, 3, 4}

	avg := math.Average(xs)
	fmt.Println(avg)

}