maybe one more thing. How can I extract the number from this form
[0.1234... +- 12341e-12341] + i*0 to a normal number such that I can work
with it in later calculations
Am Samstag, 28. Mai 2016 15:48:46 UTC+2 schrieb digxx:
>
> Well thx yes this works. But it is not the notation I
Samstag, 28. Mai 2016 15:18:02 UTC+2 schrieb Fredrik Johansson:
>
> On Sat, May 28, 2016 at 1:42 PM, digxx <diger...@hotmail.com >
> wrote:
> > Hey again,
> > So I found the the arb documentation and was wondering if the syntax is
> the
> > same.
> > s
HEy thx. in particular I'm using 1_F_1 and die first argument is about ~-500
Is there a documentation? I only found the fithub page with not further
explanation about hypergeometric
Am Samstag, 28. Mai 2016 13:56:28 UTC+2 schrieb Sheehan Olver:
>
> This might be helpful:
>
>
Hey again,
So I found the the arb documentation and was wondering if the syntax is the
same.
since for example acb_hypgeom_m(1.0,1.0,1.0) does not work. Must be doing
something wrong :-(
sry
I'm using GSL for hypergeometric functions but needed to increase the
precision to big()
unfortunately it is not supported so now my question is whether theres
another package for hypergeometric functions which does support it?
yeah sorry I just found that out why I deleted the thread. Sorry
Am Montag, 16. Mai 2016 13:46:24 UTC+2 schrieb Yichao Yu:
>
> On Mon, May 16, 2016 at 6:20 AM, digxx <diger...@hotmail.com >
> wrote:
> > So I want to do the following function but it doesnt work.
>
Sorry I forgot:
x_a=0
x_b=5
N=50
X=linspace(x_a,x_b,N)
before the function.
So I want to do the following function but it doesnt work.
The problem probably is that I need something like a "return" at the and
which I incorporated symbolically. Atm the output is empty.
function vk(k,x)
res=zeros(length(x))
if k>=2 && k<=(N-1)
for i=1:length(x)
if x[i]<=X[k] &&
Sry, I accidentally sent my post.
So the above version seems to run berserker
if i put an @sync infront of @parallel it seems to work, but does it really?
When accessing a SharedArray do the other workers wait when at one moment
in time a specific worker is changing some entry another worker would like
to access to too?
for example
power=SharedArray(Int64,10)
@parallel for i=1,100
if power(1)==0
power(1) = something
end
end
As a sidenote: I do have Conda installed? Should I maybe NOT use Pkg
anymore then?
Am Samstag, 16. April 2016 19:59:46 UTC+2 schrieb digxx:
>
> When using Pkg.update() I had these errors. I was just wondering coz I
> didnt have these before!?
> What went wrong and what do I need to do?
>
>
When using Pkg.update() I had these errors. I was just wondering coz I
didnt have these before!?
What went wrong and what do I need to do?
julia> Pkg.update()
INFO: Updating METADATA...
INFO: Updating cache of ColorTypes...
INFO: Updating cache of DistributedArrays...
INFO: Updating cache of
Thx, setdiff is what I want.
symdiff seems to do
symdiff(A,B)=sort([setdiff(A,B),setdiff(B,A)])
Am Samstag, 16. April 2016 18:05:39 UTC+2 schrieb digxx:
>
> Say I have 2 arrays
> A=[1,2,3,4,5,6]
> B=[1,6,7]
> and the resulting array
> C=[2,3,4,5] = A NOT B results from a
Say I have 2 arrays
A=[1,2,3,4,5,6]
B=[1,6,7]
and the resulting array
C=[2,3,4,5] = A NOT B results from a logical operation
Is there already something implemented like this?
MAybe some related question:
When plotting with PyPlot and subsequently using
title("hello") or legend(loc="upper right",fancybox="true")
I get the error:
Is it because im missing some matplotlib stuff or what is the issue here?
ERROR: MethodError: `call` has no method matching
Hm Thx...Apart from the Browser Plotting solved it :-(
-.- Yeah sure..I just thought maybe there is a method still possible not
that direct like axis=... which I still makes it work for Gadfly because as
far as I thought Gadfly was the most comprehensive Plotting package for
Julia, am I wrong?
2 axes on the left is also not supported?
When I do not have Conda installed but install PyCall in Julia does
Pkg.add("PyCall") still installs its own small PYthon distribution?
Installing PyPLot creates a folder .matplotlib which only contains a cache
file
fontList.cache
and a tex.cache folder...Do I need to install matplotlib manually from
http://matplotlib.org/api/pyplot_api.html#module-matplotlib.pyplot ???
Because here: https://github.com/stevengj/PyPlot.jl
it said
Sorry I meant:
http://matplotlib.org/users/installing.html#windows
ittwoch, 3. Februar 2016 03:22:44 UTC+1 schrieb Stefan Karpinski:
>
> You need to press the tab key after typing \gamma.
>
> On Tue, Feb 2, 2016 at 7:26 PM, digxx <diger...@hotmail.com >
> wrote:
>
>> Yes I tried for example
>> "\gamma
The error its giving me is:
WARNING: Keyword argument axis not supported with Plots.GadflyPackage().
Choose from:
not quite sure what I belong to: I am using the REPL Julia interface only
for include("") to read/run my files i wrote in notepad. Does this
still belong to REPL or what does it differ to IJulia for example (which I
have never used yet)
Using Gadfly backend
https://github.com/tbreloff/Plots.jl
gave one example of axis=:auto but apparently this example is somewhat
different from what I want.
I have the date
x=linspace(0,2pi,50)
y=sin(x)
plot(x,y,axis=:left) works fine but I want
plot(x,y,axis=:right) which doesnt work. Even
Ok now im home and see the problem. I never use repl for plotting. I just
use notepad++ and run it.
\gamma turns into the actual letter when pressing tab, but not in the
notepad obviously ;)
So is there a way to still do it?
apart from using repl...
Am Dienstag, 2. Februar 2016 22:34:54 UTC+1 schrieb digxx:
>
> Sorry it's me again:
> while writing:
>
>
> f = "Sans";
> default(tickfont = font(f,8),
> guidefont = font(f,11),
> legendfont = font(f,8))
>
> it gives me the error:
>
>
Though do u know what this means?
INFO: Recompiling stale cache file
C:\cygwin64\home\Diger\.julia\lib\v0.4\Plots.ji for module Plots.
It doesn't show it when I say
using Plots
directly in Julia.
Sorry it's me again:
while writing:
f = "Sans";
default(tickfont = font(f,8),
guidefont = font(f,11),
legendfont = font(f,8))
it gives me the error:
ERROR: LoadError: UndefVarError: font not defined
in include at boot.jl:261
in include_from_node1 at loading.jl:304
in try_include at
Am Dienstag, 2. Februar 2016 15:24:17 UTC+1 schrieb Tom Breloff:
>
> The easiest way? Add spaces to the end of your text, which will force
> extra padding. The "correct" way to solve this (without fixing the font
> issue) is pretty complex.
>
> On Mon, Feb 1, 2
Probably I wont be able to solve it anyway :-/ but I'm using Windows with
cygwin. Version 0.4 Julia.
this example will help:
>
>
>
> The greek letters are created with tab completion: "\gamma"
>
>
> For a little more info on latex in Gadfly, see this issue:
> https://github.com/dcjones/Gadfly.jl/issues/356
>
> On Mon, Feb 1, 2016 at 5:55 PM, digxx <diger...@hotmail.c
Yes I tried for example
"\gamma"
or
"{\gamma }"
"{\gamma } "
and so on but i still get only the written gamma :-/
Maybe I'm missing some package?
Or some <> u need like with ?
Hey,
Thx for your reply...The problem is that apparently using savefig cuts of
half of the labeling...
So when plotting in my browser say i have the labeling on the right:
Label1
Label2
Label3
then when figuresaving he plots everything fine, but label is just cut of
in the image: i.e.
Lab
Lab
Sorry just found out about the second...
So still need 1 and 3 :-(
Maybe one dumb question about the juliarc.jl
In what folder should that be?! Apparently I dont have it, does it have to
contain some basic content?
if I do:
default(tickfont = font(f,8), guidefont = font(f,11), legendfont =
font(f,8)) > ~./juliarc.jl
it says:
ERROR: syntax: "/" is not a unary
I have a few questions regarding plotting:
1. How do I plot Greek letters? In particular I want to use them as strings
in a labeling of axes or curves.
2. When using Plot with backend Gadfly how do I savefig with higher
resolution? So far it produces 600x400
3. How do I print x^* ?? (like it
So concerning the actual problem. How can I increase the space for the
legend so that it would show up completly in my plot?
I use Plot as Plotting Device with Gadfly Backend and used
savefig("testfile") to save my previously plotted figure..
Apparently it has some issues with the font. Do I need to load it in Julia
seperately?
(julia.exe:6312): Pango-WARNING **: couldn't load font "Helvetica
Not-Rotated
Hey sorry I was thinking about maybe the same though dont quite get what
you mean.
If I have a function
f(x)=x
and later want to overwrite f(x) with a variable I cant do that since its a
function?
Cant I delete the function other than closing Julia?
Am Montag, 4. Januar 2016 22:18:42 UTC+1
Why @sync?
It's not mandatory or is it related to getting @time work? And why?
Not quite sure what you mean with SharedArrays!?
Ok, I know what a SharedArray is but even if I specify r as a SharedArray
like
r=SharedArray(Float64,1,100)
r[1,:]=collect(1:100)
it doesnt work. So what in particular are you refering to to get it run?
(Apart from what was already mentioned as
2 other questions:
is the function fzero not defined for parallelism?
and is it necessary to define/calculate the r in the separate file i want
to include?
Because id like to do the calculation of this array r in the main file only
once since but then again when I do it, the function included as
ok sorry, needed an additional using Roots though I called it in the main
function already.
Maybe to clarify:
The first question regarding fzero:
I have this fzero in the serial loop but it doesnt work in a separate file,
though @parallel loop in the main file with fzero DOES work.
Apparently for a parallel loop the @time macro or tic() toc() do not
measure the time?!
I directly get a result for the time but know that the calculation is still
ongoing.
Is the usage like this:
@time @parallel for i=1:10
end
As far as I understood @everywhere lets every worker know about some
function for example
@everywhere f(x)=x.^2
Now my function additionally accesses to some big array
for example
@everywhere f(x)=sum( x./r ,2)
where r could be sth like
r=zeros(1,100)
r[1,:]=1:100
When I now call the
Hey, I had a look in it:
Its not the '.' on its on but also the fact that in front of the '.' IDL
expects a '0' in case the number is smaller than 1
Then everything is read as double.
And yes, the vcat gave the wanted result, though why (as asked above) do I
need this reduction operator?
Though why does fetch(r[1]) not work? Wouldnt one expect it to give the
result a specific worker calculated?
Do I always need a reduction operator? in this case vcat, right?
The other question was maybe more fundamental (and simple?):
Why is the calculation so much faster with a @async prefix?
Yep, writing 1.0 as integer '1' still gives a double array when read by IDL
Any idea anyone? :-(
I have a function defined this way:
vol_flow(eta,x_s)=2*broadcast(+, eta.^2-eta.^4/2 , sum( broadcast(*,
broadcast(/,2*eta,r.^2).*broadcast(-,broadcast(*,2./r,broadcast(/,besselj1(broadcast(*,r,eta)),besselj0(r))),eta)
, exp(-broadcast(*,r.^2,x_s))) , 3) )
Now specifying x_s=0.05 for example
Hm...Right Thanks...-.-
Almost forgot:
r is defined by:
g_r(a)=besselj1(a)-a/2*besselj0(a);
N=500;
rr=zeros(1,1,N);
r=zeros(1,1,N);
index=zeros(5,N);
for i=1:N
r[1,1,i]=fzero(g_r,[pi+(2*i-1),2*pi+(2*i-1)]);
end
eps=0.1;
for i=1:N
if ~(i in index)
ind=find( abs(r-r[1,1,i]) .< eps );
rr[1,1,i]=mean(r[ind]);
Sorry again: This ofc is wrong:
volflow(eta,0.05)=2*broadcast(+, eta.^2-eta.^4/2 , sum( broadcast(*,
broadcast(/,2*eta,r.^2).*broadcast(-,broadcast(*,2./r,broadcast(/,besselj1(broadcast(*,r,eta)),besselj0(r))),eta)
, exp(-broadcast(*,r.^2,x_s))) , 3) )
correct:
volflow(eta)=vol_flow(eta,0.05)
Is there sth like a breakpoint?stop or pause function?
I have looked for either of it but couldnt find it...
I dont want to run the entire script but stop in between to look at some
temporary result?
Is that somehow possible?
As you could see, the reduction operator can be omitted if it is not
needed. In that case, the loop executes asynchronously,
i.e. it spawns independent tasks on all available workers and returns an
array of RemoteRef (page 399)
immediately without waiting for completion. The caller can wait for
Manually I can do:
arr1=...
arr2=...
arr3=...
and so on
If I have a loop over i can i construct in each loop a new variable
symbolically like this:
arr*string(i)=... ?
Im not quite sure what deeper purpose the function indexpids has.
As far as I noticed when calling remotecall(p,f,arg) then in the function f
indexpids always returns p-1
Is that correct or are there applications where its not as clear?
I dont think Geom. is compulsory or?
In what way is it not informative?
What do u need? :-/
Im trying to plot the following using layers...though do I have to load it
separately or why doesnt it work?
julia> plotcomb=plot(
layer(
x=Q_l,
y=cal_corr
),
layer(
x=Q_l,
y=cal_corr,
Geom.line
),
Theme(panel_opacity=0.1)
Though this is not a big issue since I can convert the strings to double as
I want IDL still tells me the following
IDL>corr=read_csv(dir+'writecsv_test.csv')
IDL> help,corr
** Structure , 4 tags, length=1176, data length=1176, refs=1:
FIELD1 DOUBLEArray[21]
FIELD2
with
writedlm("C:\\Users\\Diger\\Documents\\Julia\\x_values.csv",zip(x_s[1,1:end],x[1:end],epsilon[1,1:end,1],omega[300,1:end,1]),',')
I wanted to write a csv file comma separated...
Now in the manual it says that everything is saved as string, though the
last column (omega) is saved as double
Hey Thanks for ur input...I have one question regarding plotting:
Initially Plots (I just installed it) tried to call PyPlots and spit out
this error:
while loading C:\Users\Diger\Documents\Julia\timecompare.jl, in expression
starting on line 27 in include_from_node1 at loading.jl:304 in
Is it possible to display the precision of a number to arbitrary decimals
points?
For example if I want to display pi (or any other result) up to 1e6
decimals?!
So yes thats basically what I want to achieve. Getting Julia Pkg running on
cygwin which apparently needs Git. Do you have another possibility of
getting Julia running via cygwin?
I tried the generic Linux binaries but this doesnt work somehow? I actually
just copied it and tried to run it via
To state it correctly...The amount of operations wont be different but Im
wondering if it also takes time to jump to the next saved entry when using
repmat or is it just the memory storage that makes it take so much longer
than doing it with broadcast?
Yep I'm using 0.4 not 0.4.1
Oddly enough its working when using the windows installer and then run it
via cygwin...Though not when building it from the source :( Dont quite get
the difference though... shouldnt it be the same?
Probably one could figure it out in the files you mentioned (pkg.jl
When setting a path in the system environment variable is it taken over by
Julia?
e.g. the usual files included are in the Julia directory...But when i want
to include a file without always specifying the entire Path how can I add
this path in Julia?
Thanks
when trying
x=[0,1,3,4,6,1]
find(x.>3,x)
I always get the error:
ERROR: MethodError: `find` has no method matching find(::BitArray{1},
::Array{Int64,1})
Closest candidates are:
find(::Function, ::AbstractArray{T,N})
find(::BitArray{N})
Sorry I already deleted it since find(x.>3) just works...
Though in the manual it says its a 2 argument function
first argument the condition and second the array/vector...
Am Samstag, 14. November 2015 15:54:10 UTC+1 schrieb Dan:
> `x .> 3` is a bit-array. The function form, which is probably
Is there an analogous function that makes a meshgrid out of
x=0:0.1:1
y=0:0.1:2
[x,y]=meshgrid(x,y)
which is the command in matlab
>
> Maybe repmat?
>
Or is there also something else?
So is the broadcasting only faster in terms of memory or also in less
operations?
Sorry again,
Also the Pkg.status() still shows the same error :-/
ygwin git is posix-style and handles paths differently than the mingw
> portable git. Pkg could maybe be fixed to work with cygwin's git, but on
> master we're using libgit2 now instead of shelling out.
>
>
>
> On Tue, Nov 3, 2015 at 12:21 AM -0800, "digxx" <diger.
I will try tonight...
Though I'm confused why he needs the portable GIT
I specifically installed the cygwin package GIT so he should find "some"
GIT?
Isnt this the right one or is there more to it than just the portable git
to be in place on julias path?
I mean in principle I could also then
@Tony: Yeah I knew that, though the actual command Seth proposed ./xxx is
what I was looking for: ./ for executables I didnt know :-(
So now it seems to load in cygwin but when trying the Package thing I get
this:
julia> Pkg.status()
INFO: Initializing package repository
taller,
> then when you run Julia in cygwin it is trying to call cygwin's git which
> does not work.
>
>
>
> On Mon, Nov 2, 2015 at 3:13 PM -0800, "digxx" <diger...@hotmail.com
> > wrote:
>
> @Tony: Yeah I knew that, though the actual command Seth proposed ./xxx
So basically you mean I have to change the way julia0.4 wants to shell out?
Telling him somehow to shell out to cygwin and not git via cygwin?
Thanks for your reply.
Unfortunately I have no experience with linux/unix (and objectoriented
programming)
So: I dont quite understand what libfontconfig is...? Is it just some
allocating path or really some intrinsic programming thing and therefore
would require complete rewriting of the
I want to use Gadfly and apparently it's dependent on fontconfig.
So I installed fontconfig and now when he tries to load fontconfig I get
this error.
So where/how would I store my C-library?
Right now im installing cygwin but cant even get Julia installed...I opened
a new thread for this
Thank you. After hours of compilation it finally finished without errors.
Now I have the Julia.exe file in my bin folder but when trying to run it
from there by typing
Julia.exe or just Julia or -c Julia.exe it tells me: command not found?
Btw: how did u see it was m4? I mean u didnt really read
Thank you. After hours of compilation it finally finished without errors.
Now I have the Julia.exe file in my bin folder but when trying to run it
from there by typing
Julia.exe or just Julia or -c Julia.exe it tells me: command not found?
Btw: how did u know it was m4? It didnt complain
When trying to load Fontconfig I get this error:
INFO: Precompiling module fontconfig...
ERROR: LoadError: error compiling __init__: could not load library
"libfontconfig"
no error
in include at boot.jl:261
in include_from_node1 at loading.jl:304
[inlined code] from none:2
in anonymous at no
101 - 187 of 187 matches
Mail list logo