Re: [julia-users] Re: GSL hypergeometric

2016-05-28 Thread digxx
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

Re: [julia-users] Re: GSL hypergeometric

2016-05-28 Thread digxx
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

[julia-users] Re: GSL hypergeometric

2016-05-28 Thread digxx
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: > >

[julia-users] Re: GSL hypergeometric

2016-05-28 Thread digxx
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

[julia-users] GSL hypergeometric

2016-05-27 Thread digxx
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?

Re: [julia-users] return in function

2016-05-16 Thread digxx
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. >

[julia-users] Re: return in function

2016-05-16 Thread digxx
Sorry I forgot: x_a=0 x_b=5 N=50 X=linspace(x_a,x_b,N) before the function.

[julia-users] return in function

2016-05-16 Thread digxx
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] &&

[julia-users] Re: worker waiting???

2016-04-16 Thread digxx
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?

[julia-users] worker waiting???

2016-04-16 Thread digxx
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

[julia-users] Re: Pkg.update() error

2016-04-16 Thread digxx
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? > >

[julia-users] Pkg.update() error

2016-04-16 Thread 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? julia> Pkg.update() INFO: Updating METADATA... INFO: Updating cache of ColorTypes... INFO: Updating cache of DistributedArrays... INFO: Updating cache of

[julia-users] Re: logic operations

2016-04-16 Thread digxx
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

[julia-users] logic operations

2016-04-16 Thread 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 logical operation Is there already something implemented like this?

[julia-users] Re: PyPlot

2016-02-04 Thread digxx
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

[julia-users] Re: PyPlot

2016-02-04 Thread digxx
Hm Thx...Apart from the Browser Plotting solved it :-(

Re: [julia-users] Plotting with Plot

2016-02-04 Thread digxx
-.- 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?

Re: [julia-users] Plotting with Plot

2016-02-04 Thread digxx
2 axes on the left is also not supported?

[julia-users] Conda

2016-02-04 Thread digxx
When I do not have Conda installed but install PyCall in Julia does Pkg.add("PyCall") still installs its own small PYthon distribution?

[julia-users] PyPlot

2016-02-04 Thread digxx
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

[julia-users] Re: PyPlot

2016-02-04 Thread digxx
Sorry I meant: http://matplotlib.org/users/installing.html#windows

Re: [julia-users] Re: Plotting (Greek letter label, high resolution...)

2016-02-03 Thread digxx
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

[julia-users] Re: Plotting with Plot

2016-02-03 Thread digxx
The error its giving me is: WARNING: Keyword argument axis not supported with Plots.GadflyPackage(). Choose from:

Re: [julia-users] Re: Plotting (Greek letter label, high resolution...)

2016-02-03 Thread digxx
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)

[julia-users] Plotting with Plot

2016-02-03 Thread digxx
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

Re: [julia-users] Re: Plotting (Greek letter label, high resolution...)

2016-02-03 Thread digxx
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?

Re: [julia-users] Re: Plotting (Greek letter label, high resolution...)

2016-02-03 Thread digxx
apart from using repl...

Re: [julia-users] Plotting with Plot

2016-02-02 Thread digxx
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: > >

Re: [julia-users] Plotting with Plot

2016-02-02 Thread digxx
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.

Re: [julia-users] Plotting with Plot

2016-02-02 Thread 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: ERROR: LoadError: UndefVarError: font not defined in include at boot.jl:261 in include_from_node1 at loading.jl:304 in try_include at

Re: [julia-users] Plotting with Plot

2016-02-02 Thread digxx
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

Re: [julia-users] Plotting with Plot

2016-02-02 Thread digxx
Probably I wont be able to solve it anyway :-/ but I'm using Windows with cygwin. Version 0.4 Julia.

Re: [julia-users] Re: Plotting (Greek letter label, high resolution...)

2016-02-02 Thread digxx
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

Re: [julia-users] Re: Plotting (Greek letter label, high resolution...)

2016-02-02 Thread digxx
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 ?

Re: [julia-users] Plotting with Plot

2016-02-01 Thread digxx
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

[julia-users] Re: Plotting (Greek letter label, high resolution...)

2016-02-01 Thread digxx
Sorry just found out about the second... So still need 1 and 3 :-(

Re: [julia-users] Plotting with Plot

2016-02-01 Thread digxx
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

[julia-users] Plotting (Greek letter label, high resolution...)

2016-02-01 Thread digxx
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

Re: [julia-users] Plotting with Plot

2016-02-01 Thread digxx
So concerning the actual problem. How can I increase the space for the legend so that it would show up completly in my plot?

[julia-users] Plotting with Plot

2016-01-31 Thread digxx
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

Re: [julia-users] How do you override the new() function?

2016-01-04 Thread digxx
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

[julia-users] Re: @time tic() toc()

2015-12-12 Thread digxx
Why @sync? It's not mandatory or is it related to getting @time work? And why?

Re: [julia-users] Re: Array within a function not know on worker

2015-12-10 Thread digxx
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

Re: [julia-users] Re: Array within a function not know on worker

2015-12-10 Thread digxx
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

Re: [julia-users] Re: Array within a function not know on worker

2015-12-10 Thread digxx
ok sorry, needed an additional using Roots though I called it in the main function already.

Re: [julia-users] Re: Array within a function not know on worker

2015-12-10 Thread digxx
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.

[julia-users] @time tic() toc()

2015-12-10 Thread digxx
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

[julia-users] Array within a function not know on worker

2015-12-08 Thread digxx
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

Re: [julia-users] Writing CSV

2015-12-05 Thread digxx
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.

[julia-users] Re: Parallel @sync @async

2015-12-05 Thread digxx
And yes, the vcat gave the wanted result, though why (as asked above) do I need this reduction operator?

[julia-users] Re: Parallel @sync @async

2015-12-05 Thread digxx
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?

Re: [julia-users] Writing CSV

2015-12-05 Thread digxx
Yep, writing 1.0 as integer '1' still gives a double array when read by IDL

[julia-users] Re: Parallel @sync @async

2015-12-02 Thread digxx
Any idea anyone? :-(

[julia-users] fzero

2015-11-26 Thread digxx
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

[julia-users] Re: fzero

2015-11-26 Thread digxx
Hm...Right Thanks...-.-

[julia-users] Re: fzero

2015-11-26 Thread digxx
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]);

[julia-users] Re: fzero

2015-11-26 Thread digxx
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)

[julia-users] Breakpoint, stop(),pause()

2015-11-24 Thread digxx
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?

[julia-users] Parallel @sync @async

2015-11-22 Thread digxx
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

[julia-users] Assigning variables

2015-11-22 Thread digxx
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)=... ?

[julia-users] indexpids

2015-11-22 Thread digxx
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?

Re: [julia-users] gadfly plotting

2015-11-21 Thread digxx
I dont think Geom. is compulsory or? In what way is it not informative? What do u need? :-/

[julia-users] gadfly plotting

2015-11-21 Thread digxx
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)

Re: [julia-users] Writing CSV

2015-11-21 Thread digxx
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

[julia-users] Writing CSV

2015-11-17 Thread digxx
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

[julia-users] Re: Meshgrid

2015-11-15 Thread digxx
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

[julia-users] display precision

2015-11-15 Thread digxx
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?!

Re: [julia-users] Re: installing julia via cygwin

2015-11-14 Thread digxx
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

[julia-users] Re: Meshgrid

2015-11-14 Thread digxx
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?

Re: [julia-users] Re: installing julia via cygwin

2015-11-14 Thread digxx
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

[julia-users] Set Path

2015-11-14 Thread digxx
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

[julia-users] Find

2015-11-14 Thread digxx
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})

[julia-users] Re: Find

2015-11-14 Thread digxx
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

[julia-users] Meshgrid

2015-11-14 Thread digxx
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

[julia-users] Re: Meshgrid

2015-11-14 Thread digxx
> > Maybe repmat? > Or is there also something else?

[julia-users] Re: Meshgrid

2015-11-14 Thread digxx
So is the broadcasting only faster in terms of memory or also in less operations?

Re: [julia-users] Re: installing julia via cygwin

2015-11-13 Thread digxx
Sorry again, Also the Pkg.status() still shows the same error :-/

Re: [julia-users] Re: installing julia via cygwin

2015-11-13 Thread digxx
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.

Re: [julia-users] Re: installing julia via cygwin

2015-11-03 Thread digxx
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

Re: [julia-users] Re: installing julia via cygwin

2015-11-02 Thread digxx
@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

Re: [julia-users] Re: installing julia via cygwin

2015-11-02 Thread digxx
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

Re: [julia-users] Re: installing julia via cygwin

2015-11-02 Thread digxx
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?

[julia-users] Re: Problem with (lib)fontconfig

2015-11-01 Thread digxx
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

[julia-users] Re: Problem with (lib)fontconfig

2015-11-01 Thread digxx
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

[julia-users] Re: installing julia via cygwin

2015-11-01 Thread digxx
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

[julia-users] Re: installing julia via cygwin

2015-11-01 Thread digxx
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

[julia-users] Problem with (lib)fontconfig

2015-10-31 Thread digxx
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

<    1   2