Re: [go-nuts] Mathematical operations - the generics way

2022-03-25 Thread Paul Hankin
I don't know if it's important to you, but your Max[float64] isn't compatible with math.Max in the standard library. For example, Max[float64](NaN, 1) returns 1 rather than NaN. On Tuesday, 22 March 2022 at 16:58:40 UTC+1 esi...@gmail.com wrote: > I found a working version meantime. > > // Max r

[go-nuts] Re: modules and my v2 package only partly appearing on go.dev

2020-02-29 Thread Paul Hankin
On Friday, 28 February 2020 20:43:16 UTC+1, Paul Hankin wrote: > > I am rather confused about modules, and have trouble making them work. > > I have a package: https://github.com/paulhankin/poker > > The go.mod looks like this: ` > module github.com/paulhankin/poker/v2 &g

[go-nuts] Re: modules and my v2 package only partly appearing on go.dev

2020-02-28 Thread Paul Hankin
On Friday, 28 February 2020 21:04:04 UTC+1, Paul Hankin wrote: > > On Friday, 28 February 2020 20:43:16 UTC+1, Paul Hankin wrote: >> >> I am rather confused about modules, and have trouble making them work. >> >> I have a package: https://github.com/paulhankin/pok

[go-nuts] Re: modules and my v2 package only partly appearing on go.dev

2020-02-28 Thread Paul Hankin
On Friday, 28 February 2020 20:43:16 UTC+1, Paul Hankin wrote: > > I am rather confused about modules, and have trouble making them work. > > I have a package: https://github.com/paulhankin/poker > > The go.mod looks like this: ` > module github.com/paulhankin/poker/v2 &g

[go-nuts] modules and my v2 package only partly appearing on go.dev

2020-02-28 Thread Paul Hankin
standing that's wrong, or if I made a mistake, or if go.dev isn't working correctly. I'm pretty frustrated with the experience so far. Thanks, Paul Hankin -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] float accuracy when calculating Fibonacci numbers

2018-05-05 Thread Paul Hankin
On Friday, 27 April 2018 23:57:42 UTC+2, Michael Jones wrote: > > Yuval, > > There are fundamental issues here. > > 1. That equation (de Moivre, Binet) is from the algebra of ideal numbers. > Numbers of infinite precision. Not the realm of computer arithmetic. It > works fine with double precisio

[go-nuts] Re: constant 256 overflows byte

2017-03-08 Thread Paul Hankin
is: memoryBlock[2] -= 187 https://play.golang.org/p/5ljs4wIeq9 -- Paul Hankin -- 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. For more options, visit https://groups.google.com/d/optout.