You may want to check the isapprox function.
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?)
>
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 p
es you
> perceive 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 >
> wrote:
>
> > As suggested by a few of you, I put everything in a function and
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]
>
>
>
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
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 2