Re: [julia-users] How Julia do math operations

2014-11-05 Thread Arnaud Amiel
You may want to check the isapprox function.

Re: [julia-users] Re: Help needed, running slow

2014-07-24 Thread Arnaud Amiel
Exactly my problem here, stuggling to understand what global variables are in the context of what I see as a script which I assumed was running in its own context. I am new to Julia and hardly ever used dynamic languages before so lots of strange and magic behaviour here for me. Some of my

Re: [julia-users] Re: Help needed, running slow

2014-07-24 Thread Arnaud Amiel
I believe this would solve my problem On Thursday, 24 July 2014 15:02:26 UTC+1, Tobias Knopp wrote: So, question would be: Is it possible to have an include like command that puts everthing into its own scope (using let?)

[julia-users] Re: Help needed, running slow

2014-07-23 Thread Arnaud Amiel
As suggested by a few of you, I put everything in a function and now it runs in 1/4 s, that is nearly 32 x improvement for 'no change' that is one of the aspects I don't like in julia. Anyway, lesson learnt I will now put everything inside functions and will learn how to use the profiler

[julia-users] Re: Help needed, running slow

2014-07-23 Thread Arnaud Amiel
Well spotted, not quite right, when not paying attention I regularly get confused with in and = although in this case it does not really matter. On Tuesday, 22 July 2014 23:45:21 UTC+1, J Luis wrote: Hmmm, is this right? for j in 1:f[i]

Re: [julia-users] Re: Help needed, running slow

2014-07-23 Thread Arnaud Amiel
to be minor are, in fact, not minor -- but are instead substantive changes to the semantics of your program? -- John On Jul 23, 2014, at 9:38 AM, Arnaud Amiel aam...@gmail.com javascript: wrote: As suggested by a few of you, I put everything in a function and now it runs in 1/4 s

[julia-users] Help needed, running slow

2014-07-22 Thread Arnaud Amiel
To learn how to use Julia, I am running through the project Euler problems (I had already solved most of them using other languages) and up to now, they have all comfortably been solved under 1s without any clever algorithm, even sometimes purposely brute forced. However I am stuck on problem