You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>using LoopVectorization
julia>functionf(rounds)
pi=1.0@turbofor i in2:(rounds +2)
x = (-1)^iseven(i)
pi+= x / (2* i -1)
endreturnpi*4end
julia>f(10)
NaN
julia>f(10) #simd is okay with this and sees a speed up compared to plain loop3.058402765927333
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: