8 lines
107 B
Go
8 lines
107 B
Go
|
package gmath
|
||
|
|
||
|
import "math"
|
||
|
|
||
|
func Pow[N Number](x, y N) N {
|
||
|
return N(math.Pow(float64(x), float64(y)))
|
||
|
}
|