1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 // Dim returns the maximum of x-y or 0.
8 func Dim(x, y float64) float64 {
15 // Max returns the larger of x or y.
16 func Max(x, y float64) float64 {
23 // Min returns the smaller of x or y.
24 func Min(x, y float64) float64 {