Introduction to Julia
James Fulton
Climate informatics researcher
Designed by Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and Alan Edelman
Julia was designed to be:
You can download Julia from:
Run Julia online:
The console
The console
Inside script.jl
:
# Print the number 2
println(2)
# Print the sum of 1+2
println(1+2)
2
3
Inside script.jl
:
# Print the number 2 <--- these are comments
println(2)
# Print the sum of 1+2 <--- these are comments
println(1+2)
2
3
Inside script.jl
:
Print the number 2
println(2)
Print the sum of 1+2
println(1+2)
ERROR: LoadError: syntax: extra token "the" after end of expression
Stacktrace:
[1] top-level scope
@ ~/script.jl:1
Inside script.jl
:
#=
=#
println(2)
2
Inside script.jl
:
#=
Print the
number 2
=#
println(2)
2
Introduction to Julia