[racket-users] Different behaviors between Racket 7.4 and its CS variant

2019-08-28 Thread Shaobo He
Hello everyone, I observed the discrepancy between the outputs of Racket 7.4 and its CS variant on a function that uses the random number generator. Please see the following two screenshots. Is the behavior expected? Thanks, Shaobo [image: Capture1.PNG] [image: Capture2.PNG] -- You

Re: [racket-users] Quadruple-precision floating-point support?

2019-08-28 Thread Shaobo He
of these formats based on the bit representations of quad-precision numbers is easy. Shaobo George Neuner 于2019年8月25日周日 上午10:28写道: > > On 8/23/2019 8:39 PM, Shaobo He wrote: > > Hello everyone, > > > > I'm in need of quad-precision floating-point type/operations in Racket

Re: [racket-users] Quadruple-precision floating-point support?

2019-08-23 Thread Shaobo He
; On 8/23/2019 8:39 PM, Shaobo He wrote: > > Hello everyone, > > > > I'm in need of quad-precision floating-point type/operations in Racket > > (the bigfloat module doesn't work for me). It appears there's none, am > > I right? > > > > If so, I thin

[racket-users] Quadruple-precision floating-point support?

2019-08-23 Thread Shaobo He
Hello everyone, I'm in need of quad-precision floating-point type/operations in Racket (the bigfloat module doesn't work for me). It appears there's none, am I right? If so, I think I will try to write one myself, which is going to be a wrapper to libquadmath. Any suggestions about how I

Re: [racket-users] Racket School tuition

2019-06-04 Thread Shaobo He
Got it. Thank you. Jay McCarthy 于2019年6月4日周二 下午7:08写道: > The financial aid means everything is paid for. > > -- > Jay McCarthy > Associate Professor @ CS @ UMass Lowell > http://jeapostrophe.github.io > Vincit qui se vincit. > > On Tue, Jun 4, 2019 at 8:35 PM Shao

[racket-users] Racket School tuition

2019-06-04 Thread Shaobo He
Hello everyone, Can I ask a question about Racket School here? I got the financial aid, do I still need to purchase the ticket or it's waived? Thanks, Shaobo -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and

Re: [racket-users] Assertion failures in bigfloat package

2019-04-21 Thread Shaobo He
Thank you guys. I'll start to dig into it after a paper deadline. Sam Tobin-Hochstadt 于2019年4月19日周五 上午7:29写道: > On 1: the best thing to do is figure out (probably with logging) which > call to MPFR and what arguments produce the assertion. > 2: I don't think there's any intended

Re: [racket-users] Generate really large random numbers in Racket

2019-04-03 Thread Shaobo He
Thank you. I think `random-natural` works for my case. 'Paulo Matos' via Racket Users 于2019年4月2日周二 上午12:49写道: > Check the math library by Neil Toronto: > > https://docs.racket-lang.org/math/base.html?q=random#%28part._.Random_.Number_.Generation%29 > > (random-natural k) → Natural > >

Re: [racket-users] The distribution of numbers returned by (random)

2019-04-03 Thread Shaobo He
Thank you very much. This is exactly what I needed. Gustavo Massaccesi 于2019年4月3日周三 下午2:22写道: > The implementation is tricky, but you can understand the distribution > looking at this "alternative" implementation: > > (define (myrandom) > #;(/ (+ (random 4294967087) 1) (+ 4294967087 1)) >

Re: [racket-users] Generate really large random numbers in Racket

2019-04-01 Thread Shaobo He
Thank you for your reply. This is my thought too but I'm not sure if combining multiple random bits break any good properties of random number generators. Sorry I should've mentioned it. I was talking about bounded random numbers. Robby Findler 于2019年4月1日周一 下午3:35写道: > Generate multiples of