]> Cypherpunks repositories - gostls13.git/commit
math/big: add (*Float).Sqrt
authorAlberto Donizetti <alb.donizetti@gmail.com>
Tue, 3 Oct 2017 08:18:00 +0000 (10:18 +0200)
committerRobert Griesemer <gri@golang.org>
Thu, 26 Oct 2017 17:29:27 +0000 (17:29 +0000)
commitbd48d37e301395d60cc00ad335ccae63a12830e2
tree7300a78f8a3070071bea74f7c9119d303e1dc470
parent577538a282a95c48b543477bc569e7c80f898989
math/big: add (*Float).Sqrt

This change adds a Square root method to the big.Float type, with
signature

  (z *Float) Sqrt(x *Float) *Float

Fixes #20460

Change-Id: I050aaed0615fe0894e11c800744600648343c223
Reviewed-on: https://go-review.googlesource.com/67830
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/math/big/sqrt.go [new file with mode: 0644]
src/math/big/sqrt_test.go [new file with mode: 0644]