Friday, 8 January 2016

Installing Julia on Mac OS

Download Julia installable from following location.

Open the downloaded .dmg file. Drag the Julia to Applications folder.

Go to launch pad and type ‘julia’.
Click on the Julia launcher, it opens Julia shell like below.

On Mac Julia installed at ‘/Applications/Julia-0.4.1.app/Contents/Resources/julia/bin’, Add this path to your system path, so you can call the Julia command from anywhere.


You can evaluate any expression in Julia prompt.
julia> 5+3
8

julia> 5*3
15

julia> 5*4
20

julia> 5/4
1.25


If you don’t want the result to be printed on Julia terminal, you can use semi colon (;) at the end of the expression.
julia> sum=5+6;

julia> sub=5-6;

julia> mul=5*6;

julia> div=5/6;

julia> sum
11

julia> mul
30

julia> sub
-1

julia> div
0.8333333333333334


Note:
a.   Use Up, Down arrows to get previous expressions.
b.   To exit the interactive session, type CTRL Key + D (or) quit() function.



Previous                                                 Next                                                 Home

No comments:

Post a Comment