Open haraldschilly opened 4 years ago
the code in https://github.com/sagemathinc/cocalc-example-files/blob/master/julia/julia-first-steps.ipynb is outdated.
if x is an array, then x .+ 2 adds 2 to every element. Notice the dot (.).
x
x .+ 2
the code in https://github.com/sagemathinc/cocalc-example-files/blob/master/julia/julia-first-steps.ipynb is outdated.