Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
Project: Testing 18.04
Path: julia-1.ipynb
Views: 808Kernel: Julia 1.0
Julia 1.0 Kernel in CoCalc
In [1]:
Here is the other common building block for programming: Evaluating a block of code more than once, e.g. by either counting the iterations or until a condition is met (or no longer met). This is one of the most confusing parts of programming. So don't be shy to take your time inspecting this. Try to evaluate this little program in your head by reading the lines over and over again...
In [4]:
i = 1 → s = 1
i = 2 → s = 3
i = 5 → s = 8
i = 100 → s = 108
i = -1 → s = 107
i = 5 → s = 112
In [3]:
3.14
In [1]:
26
In [2]:
v"1.0.5"
In [3]:
"/home/user/.julia:/ext/julia/depot/"
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [5]:
In [6]:
5.05
In [7]:
In [8]:
LinearAlgebra.QRCompactWY{Float64,Array{Float64,2}}
Q factor:
3×3 LinearAlgebra.QRCompactWYQ{Float64,Array{Float64,2}}:
-0.301511 0.816497 -0.492366
-0.904534 -0.408248 -0.123091
-0.301511 0.408248 0.86164
R factor:
3×3 Array{Float64,2}:
-3.31662 2.22045e-16 -0.301511
0.0 2.44949 -2.44949
0.0 0.0 2.21565
In [9]:
3×3 Array{Float64,2}:
1.0 2.0 -3.0
3.0 -1.0 1.0
1.0 1.0 1.0
In [0]:
In [0]:
In [0]:
In [10]:
┌ Info: Precompiling PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee]
└ @ Base loading.jl:1192
1-element Array{PyCall.PyObject,1}:
PyObject <matplotlib.lines.Line2D object at 0x7f857bae0c50>
In [11]:
PyObject Text(0.5, 1, 'A sinusoidally modulated sinusoid')
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
SymPy test
In [0]:
Unicode Plots
In [0]:
In [0]:
In [0]: