10^2 returns 100;
but 10^-2 or 10^(-2) returns ERROR: DomainError in power_by_squaring at
intfuncs.jl:60 in ^ at intfuncs.jl:84
do I have to use 1/10^2 instead?
This seems rather stupid. is it a Bug? I am using the nightly build version
downloaded a couple of days ago. I am new to Julia an
How would one implement a step function like behaviour in julia? In
mathematica one can write the following to create a circle with value of 1
within the radius and 0 outside
UnitBox[Sqrt[X^2 + Y^2]*0.5/radius];
X and Y are the coordinates.
I guess one can do a for loop. But how do I vectorize the code?
On Friday, 6 June 2014 20:27:46 UTC-4, Zahirul ALAM wrote:
>
> How would one implement a step function like behaviour in julia? In
> mathematica one can write the following to create a circle with value of 1
> within th
> that the power function produce different types of outputs for different
> input values, which would make optimization/compilation difficult.
>
> As a side note, I think you’ll find it’s more effective not to use the
> word “stupid”.
>
> — John
>
> On Jun 6, 2014,
; On Fri, Jun 6, 2014 at 8:28 PM, Zahirul ALAM > wrote:
>
>> I guess one can do a for loop. But how do I vectorize the code?
>>
>>
>> On Friday, 6 June 2014 20:27:46 UTC-4, Zahirul ALAM wrote:
>>>
>>> How would one implement a step function like be
-- mb
>
>
> On Fri, Jun 6, 2014 at 8:28 PM, Zahirul ALAM > wrote:
>
>> I guess one can do a for loop. But how do I vectorize the code?
>>
>>
>> On Friday, 6 June 2014 20:27:46 UTC-4, Zahirul ALAM wrote:
>>>
>>> How would one implement a ste
> good ? 1 : 0,
> sqrt(x.^2+y.^2).
>
>
> On Friday, June 6, 2014 10:18:36 PM UTC-4, Zahirul ALAM wrote:
>>
>> When I pass two arrays the function returns:
>>
>> type: non-boolean (BitArray{1}) used in boolean context while loading
>> In[10], in expression s
t; ?:
> expects a boolean
>
> you probably want something like:
>
> inside_disc(x,y,radius) = map(good -> good ? 1 : 0,
> sqrt(x.^2+y.^2).
>
>
> On Friday, June 6, 2014 10:18:36 PM UTC-4, Zahirul ALAM wrote:
>>
>> When I pass two arrays the function returns:
White > wrote:
>
> No worries. After more than two years on it, I’m still figuring out what’s
> the right tone for the mailing list.
>
> — John
>
> On Jun 6, 2014, at 6:42 PM, Zahirul ALAM > wrote:
>
> Thanks John.
>
> with regards to your side note, I will
est
>>> of the operators from base are.
>>>
>>>
>>> On Friday, June 6, 2014 10:58:10 PM UTC-4, Stefan Karpinski wrote:
>>>
>>>> We should probably vectorize the ifelse function.
>>>>
>>>> On Jun 6, 2014, at 10:51
Okay. I skimmed through the documents and previous questions and I am
confused. I have a few questions:
1. One may do some sequential evaluation followed by parallel operation on
the same set of data. I see how one creats a distributed array. But how
would I distribute already existing variable
I need help in understanding what am I doing wrong in each of the following
cases:
@everywhere function f2 (x, y)
return x + 1 + y
end
dArray = dzeros(5)
@parallel for i=1:5
b= map(f2, [x, x])
push!(dArray, b)
end
dArray returns are still zero and the dimensions have not changed
-
I have a simple question: How do I select all columns or particular columns
from a matrix. it is very straightforward to select a row. I have been
struggling for the last two hours. how do I do this? the manual does not
seem to talk about it. or am I missing it?
3 6
>
> First 2 rows, 2nd and 4th column:
> julia> x[1:2, [2,4]]
> 2x2 Array{Int64,2}:
> 2 4
> 4 8
>
> On Tuesday, June 10, 2014 5:46:33 PM UTC-7, Zahirul ALAM wrote:
>>
>> I have a simple question: How do I select all columns or particular
>> co
> For the darray, push! is not implemented for a darray - a darray cannot be
> grown once instantiated.
>
>
>
>
> On Wed, Jun 11, 2014 at 5:18 AM, Zahirul ALAM > wrote:
>
>> I need help in understanding what am I doing wrong in each of the
>> following
I am baffled by this error : "FFTW plan applied to wrong-size array". i am
using the plan fft in the following way:
testField = rand(512, 512) .+ rand(512, 512)*im
fastFFT = plan_fft(testField, [1:2], FFTW.PATIENT)
the problem is when I apply fastFFT to an array A it does the fft and do
not co
I have finished writing my first real Julia program (800 lines of code). I
am using it to solve a nonlinear optics problem. It took me roughly eight
days to move my code from Mathematica to Julia. I have spent most of my
time (five out of eight days) in debugging and playing with different
IDE
t,
> but that could change in the future. For now, we are putting out what we
> have done.
>
> https://github.com/JuliaComputing/ArrayFire.jl
>
> -viral
>
> On Tuesday, November 18, 2014 at 10:17:45 AM UTC+5:30, Zahirul ALAM wrote:
>>
>> I second this.
>>
I just checked out the holoviews. This is awsome. may be @pyimport will
help?
On Saturday, 4 April 2015 19:47:02 UTC-4, Philipp Rudiger wrote:
>
> Great to see this is getting some interest. I'm one of the authors of
> HoloViews and put together that initial (and poor) attempt at a Julia
> inte
I just checked out the holoviews. This is awsome. may be @pyimport will
help?
On Saturday, 4 April 2015 19:47:02 UTC-4, Philipp Rudiger wrote:
>
> Great to see this is getting some interest. I'm one of the authors of
> HoloViews and put together that initial (and poor) attempt at a Julia
> inte
This question is related to Julia and general function minimization
techniques. if I have two function f(x, y) and g(x, y). How would one find
the value of x, and y that minimizes both functions simultaneously? I
understand to the limit this is equal to finding roots if both functions
are prope
I want to start a Julia newsletter. At this moment it will be a monthly or
biweekly publication distributed over e-mails. In the long run it will
become a weekly publication. I want some community feedback. Please share
your thoughts with regards to the type of contents, the style of the
public
Thanks Viral.
On Sunday, 12 April 2015 02:29:50 UTC-4, Viral Shah wrote:
>
> Do see "This month in Julia" on Reddit. For some reason, I am unable to
> paste a link in my browser at the moment.
>
> -viral
>
> On Sunday, April 12, 2015 at 9:56:05 AM UTC+5:30, Zahi
work through it.
>
> Best,
>
> Tamas
>
> On Sun, Apr 12 2015, Zahirul ALAM >
> wrote:
>
> > I want to start a Julia newsletter. At this moment it will be a monthly
> or
> > biweekly publication distributed over e-mails. In the long run it will
Thanks for the suggestions.
I agree with cormu...@mac.com. I see it as a web based publication of some
kind. Whether we communicate the new issue using RSS feed or e-mailing TOC
is something to think about. That would address the preference of Tamas.
Maybe we want to have both, so that people
I asked this question a while ago. Has anybody tried to use the ArrayFire
library from Julia, or is anybody working on a wrapper? ArrayFire has
released version 3.
am I doing something worng?
On Tuesday, 15 July 2014 14:36:47 UTC-4, Zahirul ALAM wrote:
>
> the following line of code does not suppress output.
>
> a = λ ; #comment
>
> however
>
> a = λ ; does suppress output
>
the following line of code does not suppress output.
a = λ ; #comment
however
a = λ ; does suppress output
I have it in the following way
:app [(:lt.objs.style/set-skin "dark")
(:lt.objs.langs.julia/julia-path "C:\\Julia\\bin\\julia.exe")
]
and it works
On Sunday, 20 July 2014 22:15:15 UTC-4, Diego Tapias wrote:
>
> Thank you @Joshua. That's what I got (I have followed the
I have been using Mathematica regularly for five years now and I am a new
user of Julia. As a first serious project I have used Julia to simulate a
nonlinear optical pulse propagation problem. I originally have written the
codes in Mathematica. The simulation time in Julia was roughly eight time
t ( two types I tend to use the most). I am sure it will only
get improved.
On Monday, 21 July 2014 14:48:17 UTC-4, Stefan Karpinski wrote:
>
> On Mon, Jul 21, 2014 at 9:55 AM, Zahirul ALAM > wrote:
>
>> One feature I would like to see from IJulia may be is that the input of
&
u need.
>
> // T
>
> On Monday, July 21, 2014 11:09:31 PM UTC+2, Zahirul ALAM wrote:
>>
>> Thanks Stefan. I did find out that I can type \alpha for Unicode α.
>> My point was more to do with the "traditional" input / output mode.
>>
>> btw
I like it. I think the search will be a bit more useful if it also does
keyword search. If I am looking for a package, I am unlikely to know the
name of the package.
On Monday, 28 July 2014 00:19:26 UTC-4, Iain Dunning wrote:
>
> Hi all,
>
> I've been experimenting with trying to highlight orga
I am trying to manually set the tick frequency:
xticks([0.0, 1.0, 2.0]) works fine
however,
yticks([0.0, 1.0, 2.0]) throws the following error
type: apply: expected Function, got Array{Float64,1}
Use square brackets [] for indexing.
while loading In[21], in expression starting on line 8
in geti
I am not sure what happened. I have now restarted the computer and it
seems to work fine. As always your help is highly appreciated.
On Tuesday, 5 August 2014 12:52:03 UTC-4, Steven G. Johnson wrote:
>
> (Maybe you've accidentally declared a variable named "yticks"?)
>
Let us blame Microsoft for the moment :) . I am running Windows 7, Python
3.4 and matplotlib 1.3.1.
On Wednesday, 6 August 2014 04:30:24 UTC-4, Zahirul ALAM wrote:
>
> I am not sure what happened. I have now restarted the computer and it
> seems to work fine. As always your help
You are correct. I was able to reproduce the error by first writing yticks
= ([1, 2, 3]) and then correcting the syntax to yticks ([1, 2, 3]) returns
the error.
On Wednesday, 6 August 2014 04:37:25 UTC-4, Zahirul ALAM wrote:
>
> Let us blame Microsoft for the moment :) . I am running Win
Is there way of calculating limit of a function?
I have tried SymPy Package. But it unfortunately doesnot compute limit for
bessel function.
r= Sym("r")
limit(besselj(1, r)/r, r, 0)
returns the following error:
`besselj` has no method matching besselj(::Int64, ::Sym)
while loading In[27], in
gt; julia> @pyimport sympy
>>
>> julia> x = sympy.symbols("x")
>>
>> julia> sympy.limit(sympy.besselj(1, x)/x, x, 0.0)
>> `/` has no method matching /(::PyObject, ::PyObject)
>>
>> So the problem seems to be with how PyCa
I am having exactly the same problem: LibCurl and Nettle does not build and
I suppose this is causing the kernel in iJulia to repeatedly die. The irony
is that I just re-installed my OS.
On Wednesday, 3 September 2014 12:21:04 UTC-7, Kevin W Li wrote:
>
> This happened when I Pkg.add("IJulia"
I found no such file. in the specified folder I have build.jl
On Thursday, 4 September 2014 12:50:25 UTC-7, Joshua Job wrote:
>
> For anyone who may have issues in the future, you can simply add
>
>> @checked_lib nettle "/path/to/libnettle.so"
>>
> in .julia/v0.3/Nettle/deps/deps.jl regardless of
The documentation says:
filter(function, collection)
Return a copy of collection, removing elements for which function is false.
For associative collections,
the function is passed two arguments (key and value).
how to write the fucntion? I am trying to get elements which are nonzero.
Any Help
Thank You. Thank You. Thank You
On Monday, 3 November 2014 10:15:09 UTC-5, Zahirul ALAM wrote:
>
> The documentation says:
>
> filter(function, collection)
> Return a copy of collection, removing elements for which function is
> false. For associative collections,
> the f
Arrayfire has a large library for GPU computing. They have decided to make
their codes open source. I am hoping that someone much more able than me
will write some sort of wrapper to use the Arrayfire library in Julia.
Here is the github link: https://github.com/arrayfire/arrayfire
ould be a pretty direct translation
> of their C API.
>
>
> On Friday, November 14, 2014 2:59:01 PM UTC-8, Zahirul ALAM wrote:
>>
>> Arrayfire has a large library for GPU computing. They have decided to
>> make their codes open source. I am hoping that someone much more ab
I second this.
On Monday, 17 November 2014 12:27:43 UTC-5, Test This wrote:
>
> Happy to see thus reaction from a core julia developer. Hope julia makes
> parallel programming on CPUs and GPUs easier.
>
call too from C, from the examples on their github page, and
> that is good news for us.
>
> -viral
>
> On Saturday, November 15, 2014 5:22:17 AM UTC+5:30, Zahirul ALAM wrote:
>>
>> thanks. I have been using Julia for five months or so. I have not used
>> the ccal
how would one clear values of variable, or change the type: for instance if
I declare a = 5 and after evaluation, if I fix the statement reevaluate
const a = 5, I get error that a is already defined. How would I get a out
of the memory without restarting the entire kernel?
Second question is if
Happy new year!!
I am encountering a very odd fft error. I am trying fft NxN data. The data
is produced using a mathematical equation. After debugging I have found
that the following expression is gives NaN error:
fft(besselj(1, sqrt(X.^2+Y.^2))./sqrt(X.^2+Y.^2))
where X and Y are Array{Floa
I found the reason because both arrays contains (0, 0). Is there way around
it?
On Thursday, 1 January 2015 00:50:56 UTC-5, Zahirul ALAM wrote:
>
> Happy new year!!
>
> I am encountering a very odd fft error. I am trying fft NxN data. The data
> is produced using a mathematical
may be not
On Thursday, 1 January 2015 01:05:02 UTC-5, Zahirul ALAM wrote:
>
> I found the reason because both arrays contains (0, 0). Is there way
> around it?
>
> On Thursday, 1 January 2015 00:50:56 UTC-5, Zahirul ALAM wrote:
>>
>> Happy new year!!
>>
&g
any help please
On Thursday, 1 January 2015 01:07:33 UTC-5, Zahirul ALAM wrote:
>
> may be not
>
> On Thursday, 1 January 2015 01:05:02 UTC-5, Zahirul ALAM wrote:
>>
>> I found the reason because both arrays contains (0, 0). Is there way
>> around it?
>>
>
There is a NaN item at the very centre. How to deal with it?
On Thursday, 1 January 2015 02:25:34 UTC-5, Zahirul ALAM wrote:
>
> any help please
>
> On Thursday, 1 January 2015 01:07:33 UTC-5, Zahirul ALAM wrote:
>>
>> may be not
>>
>> On Thursday, 1 Janua
"both
> arrays to contain (0,0)" but if there is an i,j such that X[i,j] == 0 &&
> Y[i,j] == 0, then sqrt(X.^2+
> Y.^2) will have a zero at i,j.
>
>
> On Thursday, January 1, 2015 2:30:55 AM UTC-5, Zahirul ALAM wrote:
>>
>> There is a NaN item at th
open issues about better
>>> error messages although I don't remember one about this specifically. It
>>> will probably be a bit more tractable as an up-for-grabs project if/when we
>>> move to the pure-Julia parser.
>>>
>>> On Wed, Dec 31,
Very good. is the url
https://github.com/PetrKryslUCSD/jfineale_for_trying_out still valid for
the new optimized version? may be you will release this as a package?
On Friday, 9 January 2015 21:42:24 UTC-5, Petr Krysl wrote:
>
> Hello all,
>
> Big thanks to Tim Holy and Andreas Noack. The FE so
Also documentation will be immesely helpful for mortals like me. I would
like to use this for optics problems
On Saturday, 10 January 2015 13:40:34 UTC-5, Zahirul ALAM wrote:
>
> Very good. is the url
> https://github.com/PetrKryslUCSD/jfineale_for_trying_out still valid for
Hi,
I installed Julia in a windows 10 machine and I get the following error
when I try to run IJulia notebook. I could not find any related post. using
Julia version 4.5. I got very pissed at Windows and went ahead did a clean
reinstall but the problem will not go away. Surely it is a bug somew
Yea. This has fixed it. Thanks a lot to looking into it promptly.
On Tuesday, 29 March 2016 06:56:46 UTC-4, Tony Kelman wrote:
>
> This should be resolved upstream by
> https://build.opensuse.org/package/rdiff/windows:mingw:win64/mingw64-runtime?linkrev=base&rev=40
> In a fee hours when everyt
I have started using Julia roughly two summers ago. I have been visiting
this forum ever since looking for answers and tips. You guys have been
incredible. I have used 80 percent of the of the calculations for the
following paper using Julia. Sadly, during the final revision, we had to
take the
y going to University of Arizona to study the
> topic back in 1994 :)
>
> On Friday, June 3, 2016 at 10:37:54 PM UTC+8, M. Zahirul ALAM wrote:
>>
>> I have started using Julia roughly two summers ago. I have been visiting
>> this forum ever since looking for answers
61 matches
Mail list logo