[julia-users] Re: 3D plot (Plots)

2016-10-29 Thread John Gibson
Yes. On Saturday, October 29, 2016 at 7:06:04 PM UTC-4, digxx wrote: > > is it possible to somehow 3d plot the following input? > > x=array of length n > y=array of length m > z=array of size mxn > > like it can be done in matlab? >

Re: [julia-users] Re: Julia-i18n logo proposal

2016-10-05 Thread John Gibson
I also prefer the "J" one (http://imgh.us/julia-i18n-j.svg). It's more balanced. The Hindi "ja" in particular fits the circle better and looks more balanced without the diacritic "uu" (the loopy thing underneath). Nice job! John On Wednesday, October 5, 2016 at 4:35:10 PM UTC-4, Islam

Re: [julia-users] Re: linear algebra question

2016-10-05 Thread John Gibson
I would do this via QR decomposition. Produce an orthogonal basis for span v1, ..., vn via QR, then see if v changes when you project onto the space spanned by the basis. E.g. V = [v1 v2 ... vn] (Q,R) = qr(V) v - Q*(Q'*v) That last vector will be zero (small) if v is in span v1, ..., vn. I

[julia-users] Re: Mathematical Computing course in Julia

2016-04-15 Thread John Gibson
Sheehan: Thanks a million! I am due to teach undergraduate Numerical Methods next fall and have been planning to do it in Julia. I have a feeling I'm going to be deeply indebted to you for this course material. John Gibson Dept Mathematics & Statistics University of New Hampshire On Thur

[julia-users] Re: optimizing Julia code for numerical integration of PDE

2015-12-18 Thread John Gibson
Good point, thanks. I am still getting used to the semantics of assigning/copying/referencing Julia arrays. On Friday, December 18, 2015 at 1:13:38 AM UTC-5, Lutfullah Tomak wrote: > ># timestepping loop > for n = 0:Nt > > Nn1f = copy(Nnf); > > Though unrelated to unrolling, here

[julia-users] Re: optimizing Julia code for numerical integration of PDE

2015-12-18 Thread John Gibson
Yes, thanks! I also mistakenly used n as the index variable in a pair of nested loops, but the loop-index scope rules seem to have saved me there. On Friday, December 18, 2015 at 3:01:02 AM UTC-5, DNF wrote: > > Your last line is: > u = real(ifft(u)) > > In that case you seem to be throwing

[julia-users] optimizing Julia code for numerical integration of PDE

2015-12-17 Thread John Gibson
Hi, all. I'm doing a small test case of Julia's speed & code length for numerical integration of PDEs, in comparison to Matlab, Python, and C++. The test case is the 1d Kuramoto-Sivashinksy equation on a 1d periodic domain, using Fourier expansions for spatial discretization and simple

[julia-users] Re: optimizing Julia code for numerical integration of PDE

2015-12-17 Thread John Gibson
3.0 0.0 -3.0 -2.0 -1.0 which looks perfectly good. Next is restructuring the FFTW calls to eliminate allocations. When that's done I'll follow up with timing comparisons between languages and naive/optimized codes. thanks again! John On Thursday, December 17, 2015 at 4:51:04 PM UT

Re: [julia-users] Array comprehension cannot detect type?

2015-11-09 Thread John Gibson
I'm no Julia expert, but I'm pretty certain this fall under the category "If you Julia to optimize, put your code in a function." gibson@timaeus$ ~/packages/julia-0.4.0/bin/julia _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)|

Re: [julia-users] Re: Order of multiple for-loops

2015-10-30 Thread John Gibson
Agreed w Glenn H here. "math being column major" is because the range of a matrix being the span of its columns, and consequently most linear algebra algorithms are naturally expressed as operations on the columns of the matrix, for example QR decomp via Gramm-Schmidt or Householder, LU without

Re: [julia-users] Re: A grateful scientist

2015-10-30 Thread John Gibson
I'll join in here as well. For years I've seen the mess associated with existing languages like C, C++, and Fortran as a very substantial impediment to students developing professional-level expertise in scientific computation, and in fact I've shied away from trying to teach what I know,

[julia-users] entering latexish text

2015-10-22 Thread John Gibson
I can't figure out how to enter a few simple things with the latex-based unicode entry system. I can get a variable with name $x_t$ by entering x\_t-tab, but when I try to get an $x_b$ by entering x\_b-tab, it expands to x\_beta. And I can't figure out how to do multi-character subscripts,

Re: [julia-users] entering latexish text

2015-10-22 Thread John Gibson
That clears it up. Thank you. On Thursday, October 22, 2015 at 4:09:57 PM UTC-4, Yichao Yu wrote: > > On Thu, Oct 22, 2015 at 3:58 PM, John Gibson <johnf...@gmail.com > > wrote: > > I can't figure out how to enter a few simple things with the latex-based > > unicod

Re: [julia-users] entering latexish text

2015-10-22 Thread John Gibson
That clears it up. Thank you. On Thursday, October 22, 2015 at 4:09:57 PM UTC-4, Yichao Yu wrote: > > On Thu, Oct 22, 2015 at 3:58 PM, John Gibson <johnf...@gmail.com > > wrote: > > I can't figure out how to enter a few simple things with the latex-based > > unicod

Re: [julia-users] Re: Does Julia really solve the two-language problem?

2015-10-19 Thread John Gibson
Having a language where you don't worry about types and the compiler handles optimization is possible in Fortran because it has a dead-simple, nonextendable set of types. The downside is that you can't do abstraction in Fortran, and all your code ends up being a long sequence of low-level

Re: [julia-users] numerical trig question about refining good approximation to sin,cos

2015-10-17 Thread John Gibson
I have to take back a couple things. The Julia docs are clearer than I thought about the BigFloat type: it's fixed-sized but arbitrarily large, with size resettable by a function call. Second, julia> eps(BigFloat)

Re: [julia-users] numerical trig question about refining good approximation to sin,cos

2015-10-17 Thread John Gibson
Why are you trying to roll your own sin(x) function? I think you will be hard pressed to improve on the library sin(x) in either speed or accuracy. John On Saturday, October 17, 2015 at 3:38:17 AM UTC-4, Jeffrey Sarnoff wrote: > > I had tried to find a clean way to jump into the taylor series

Re: [julia-users] numerical trig question about refining good approximation to sin,cos

2015-10-17 Thread John Gibson
Search for the comment that begins "OK kiddies, time for the pros" in http://stackoverflow.com/questions/2284860/how-does-c-compute-sin-and-other-math-functions John On Saturday, October 17, 2015 at 9:00:35 AM UTC-4, John Gibson wrote: > > Why are you trying to rol

Re: [julia-users] numerical trig question about refining good approximation to sin,cos

2015-10-17 Thread John Gibson
t ~100 sigbits for angles in -2pi..2pi, but too > slowly. > > > On Saturday, October 17, 2015 at 9:12:38 AM UTC-4, John Gibson wrote: > >> Search for the comment that begins "OK kiddies, time for the pros" in >> http://stackoverflow.com/questions/2284860/how-d

[julia-users] Re: Juno and PyPlot

2015-10-05 Thread John Gibson
Does it work from the REPL? On Monday, October 5, 2015 at 10:28:57 PM UTC-4, halim hamadi wrote: > > > > I have a problem about the plot data on juno using pyplot. > > using PyCall > using PyPlot > x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x)) > plot(x, y, color="red", linewidth=2.0,

[julia-users] Re: Problem getting plot() to work with 0.4.0-rc3

2015-10-03 Thread John Gibson
See https://github.com/stevengj/PyPlot.jl/issues/140 . The problem stems from name conflicts between the system libraries libopenblas.so and liblapack.so and the versions of those two libraries that Julia downloads, compiles, and installs internally.The solution (at least on Linux) is to find

[julia-users] Re: JuliaLang Logo usage

2015-10-03 Thread John Gibson
Also having gatherings at the University of New Hampshire in the Integrated Applied Math program, so far watching JuliaCon2015 videos for our video seminar series, and using Julia in my graduate numerical linear algebra class instead of Matlab. Can I just say, it's freaking fabulous? I am so

[julia-users] Re: Problem getting plot() to work with 0.4.0-rc3

2015-10-03 Thread John Gibson
I might have jumped the gun here. Not sure if your uuid problem is caused by the library name conflict. But it's worth trying the preload. On Saturday, October 3, 2015 at 11:46:36 AM UTC-4, LarryD wrote: > > Hi > > I started by removing my old version of Julia and deleting the >

[julia-users] Re: Plasma Actuator Simulation

2015-09-28 Thread John Gibson
Marius: I think you'd be better off in learning to write fast Julia code if you presented an straightforward implementation of a classic PDE problem and asked for help in optimizing that. Maybe 2D heat equation would be a good place to start. The code you've presented is not really intelligible

[julia-users] Re: Will Julia likely ever allow negative indexing of arrays

2015-09-27 Thread John Gibson
Probably it's for something like indexing by Fourier wavenumber. You represent a real-valued periodic function as a linear combination of Fourier modes exp(2 pi i k x/L) where k varies from -K to K-1. The primary representation in data is an array of complex coefficients for those modes. It

[julia-users] Re: Very poor performance on Linux

2015-08-26 Thread John Gibson
Run df ~. That'll tell you where the file system containing your home directory is mounted. If it says nfs:/..., it's NFS-mounted. John On Wednesday, August 26, 2015 at 11:12:48 AM UTC-4, Chris wrote: Hello, I recently got access to a new Linux machine, and I've been trying to run some

[julia-users] Re: big matrices in Julia

2015-08-14 Thread John Gibson
Charles: Thanks for your response. I understand now that your application is ecological, but the mathematical nature and the discretization of your system is still unclear. You might consider a 'lazy' approach, in which you compute a distance when you need it, rather than computing them all

[julia-users] Re: big matrices in Julia

2015-08-13 Thread John Gibson
What do you mean by distances between sites at different resolution maps? The word resolution suggests that the N x N size of the matrix results from the discretization of a continuous function into N data points and the computation of N^2 distances between those data points. If that's the