Thanks.
On Friday, September 5, 2014 1:02:55 PM UTC+2, Milan Bouchet-Valat wrote:
Le vendredi 05 septembre 2014 à 03:29 -0700, Földes László a écrit :
This works fine:
julia x = 1:5
1:5
julia y = [z^2 for z in x]
5-element Array{Any,1}:
1
4
9
16
25
and I can use
This works fine:
julia x = 1:5
1:5
julia y = [z^2 for z in x]
5-element Array{Any,1}:
1
4
9
16
25
and I can use similar solution with a simplified form:
julia y = [x*2]
5-element Array{Int64,1}:
2
4
6
8
10
so I got brave and tried this, but it failed:
julia x = 1:5
1:5
Is the Julia nightlies update every day as it used to do around
January/February? I don't receive updates for a long time now, and I want
to investigate whether it is a failed Xubuntu upgrade that killed the
Sources, or the package really don't update.
Thanks
versioninfo()
Julia Version
for computations not ints.
I am asking just out of curiosity ;-)
On Wednesday, 15 January 2014 00:25:20 UTC+1, Földes László wrote:
You can force the literals by enclosing them in int32():
p = [int32(0) for i=1:2]
result = [int32(0) for i=1:2]
k = int32(0)
n = int32(2
Just letting you know :-)
You can force the literals by enclosing them in int32():
p = [int32(0) for i=1:2]
result = [int32(0) for i=1:2]
k = int32(0)
n = int32(2)
while k int32(2)
i = int32(0)
On Wednesday, January 15, 2014 12:04:23 AM UTC+1, Przemyslaw Szufel wrote:
Simon,
kl. 17:02:25 UTC+1 søndag 12. januar 2014 skrev Földes László følgende:
This little piece of code tricked me:
if value big(2^32)
println(Finished!)
break
end
The println was never executed and couldn't find the problem for about
3
minutes when I
This little piece of code tricked me:
if value big(2^32)
println(Finished!)
break
end
The println was never executed and couldn't find the problem for about 3
minutes when I tried it on a 64 bit OS, where it worked.
The problem is that on 32-bit OS 2^32 equals to zero. I'm just getting
Float64 version. This means that 0.1 will
be 1.55511151231257827021181583404541015625e-01 instead
of
1.02e-01
kl. 17:02:25 UTC+1 søndag 12. januar 2014 skrev Földes László følgende:
This little piece