On Thu, Aug 13, 2020 at 11:25 PM Patrick Smith <pat42sm...@gmail.com> wrote:
> I tried out a few different implementations, evaluating the polynomial
> instead of finding roots,
> at https://go2goplay.golang.org/p/g8bPHdg5iMd . As far as I can tell,
> there is no sensible way to
> do it with an interface that is implemented directly by *big.Float; we
> need to wrap *big.Float
> in a wrapper type in any case.

After looking at the draft again, and seeing the Settable example
there, I realized we can do it using big.Float directly, but it needs
two interfaces, one matching big.Float and one matching *big.Float. I
have updated my examples at https://go2goplay.golang.org/p/auSkvhWSNHn
.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAADvV_vxU7nUJ16X5xwBYhiOPVrzp%3DzrX%3DU4UTgBsOQJ2RnMuQ%40mail.gmail.com.

Reply via email to