Re: [Haskell-cafe] Optimization flag changing result of code execution

2013-03-17 Thread Azeem -ul-Hasan
I am using GHC 7.6.1 mwc-random 0.12.0.1 vector 0.9.1 primitive 0.4.1 Azeem On 16.03.2013 13:31, Azeem -ul-Hasan wrote: Nope that isn't the case either. Even if I make use of defaultSeed through create the problem still remains. The problem seems to be in the generation

Re: [Haskell-cafe] Optimization flag changing result of code execution

2013-03-16 Thread Azeem -ul-Hasan
the result. In this case it looks like you're averaging the averages, which i *believe* can get pretty nasty in terms of numerical precision. Rationals would be a bit slower, but you could then sort out which number is more correct. On Fri, Mar 15, 2013 at 4:07 PM, Azeem -ul-Hasan aze...@live.com

Re: [Haskell-cafe] Optimization flag changing result of code execution

2013-03-16 Thread Azeem -ul-Hasan
, which uses unsafePerformIO? Does the problem persist if you seed your program with some predefined seed? Roman * Azeem -ul-Hasan aze...@live.com [2013-03-16 13:46:54+0500] Hi Carter, Thank you for your help, but I can confirm that this is not due to floating point errors

[Haskell-cafe] Optimization flag changing result of code execution

2013-03-15 Thread Azeem -ul-Hasan
I was trying to solve a computational problem form James P Sethna's book Statistical Mechanics: Entropy, Order Parameters, and Complexity[1]. The problem is on page 19 of the pdf linked and is titled Six degrees of separation. For it I came up with this code: http://hpaste.org/84114 It runs

Re: [Haskell-cafe] Computational Physics in Haskell

2011-03-31 Thread Azeem -ul-Hasan
. On Wed, Mar 30, 2011 at 11:23 AM, Azeem -ul-Hasan aze...@live.com wrote: I started learning Haskell a little while ago. Although I am a novice I am still in love with it. I am physics major and primarily interested in Theoretical Physics and would like to use Haskell in this area

[Haskell-cafe] Computational Physics in Haskell

2011-03-30 Thread Azeem -ul-Hasan
for simulating physical process in Haskell etc. Azeem Ul Hasan School of Science and Engineering, Lahore University of Management Sciences, Lahore, Pakistan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Cabal proxy configuration

2011-01-27 Thread Azeem -ul-Hasan
configuration From: ivan.miljeno...@gmail.com To: aze...@live.com CC: haskell-cafe@haskell.org On 28 January 2011 15:13, Azeem -ul-Hasan aze...@live.com wrote: My university requires the students to use internet through an authenticated http proxy. How do I configure cabal for that? I am using