5,337
edits
No edit summary |
|||
Line 56: | Line 56: | ||
=Installation= | ==Installation== | ||
===Juno=== | ===Juno=== | ||
Line 65: | Line 65: | ||
* <code>Shift + Enter</code> Evaluate current selection/section and jump to next. | * <code>Shift + Enter</code> Evaluate current selection/section and jump to next. | ||
=Usage= | ==Usage== | ||
==Package Management== | ===Package Management=== | ||
[https://www.simonwenkel.com/2018/10/06/a-brief-introduction-to-package-management-with-julia.html Guide] | [https://www.simonwenkel.com/2018/10/06/a-brief-introduction-to-package-management-with-julia.html Guide] | ||
====Initializing a new project==== | ====Initializing a new project==== | ||
Line 107: | Line 107: | ||
* <code>status</code> Show the current Pkg directory and installed packages | * <code>status</code> Show the current Pkg directory and installed packages | ||
==Basics== | ===Basics=== | ||
===Strings=== | ====Strings==== | ||
====String Interpolation==== | =====String Interpolation===== | ||
<syntaxhighlight lang="julia"> | <syntaxhighlight lang="julia"> | ||
"Variable x is $x, y is $y, and x+y is $(x+y)" | "Variable x is $x, y is $y, and x+y is $(x+y)" | ||
Line 121: | Line 121: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Arrays=== | ====Arrays==== | ||
[[https://en.wikibooks.org/wiki/Introducing_Julia/Arrays_and_tuples Full details]] | [[https://en.wikibooks.org/wiki/Introducing_Julia/Arrays_and_tuples Full details]] | ||
<syntaxhighlight lang="julia"> | <syntaxhighlight lang="julia"> | ||
Line 171: | Line 171: | ||
You can also use the full <code>function(a,b)</code> syntax. | You can also use the full <code>function(a,b)</code> syntax. | ||
==Animation Loop== | ===Animation Loop=== | ||
You can use [https://docs.julialang.org/en/v1/base/base/#Base.Timer-Tuple{Function,Real} <code>Timer(callback, delay, interval)</code>]. This is similar to SetInterval in JavaScript.<br> | You can use [https://docs.julialang.org/en/v1/base/base/#Base.Timer-Tuple{Function,Real} <code>Timer(callback, delay, interval)</code>]. This is similar to SetInterval in JavaScript.<br> | ||
End the loop with [https://docs.julialang.org/en/v1/base/io-network/#Base.close <code>close(animate)</code>]. | End the loop with [https://docs.julialang.org/en/v1/base/io-network/#Base.close <code>close(animate)</code>]. | ||
Line 228: | Line 228: | ||
</pre> | </pre> | ||
=Useful Packages= | ==Useful Packages== | ||
===MeshCat.jl=== | ===MeshCat.jl=== | ||
[https://github.com/rdeits/MeshCat.jl Link]<br> | [https://github.com/rdeits/MeshCat.jl Link]<br> | ||
Line 245: | Line 245: | ||
Very useful for printing out matrices to insert into Latex documents. | Very useful for printing out matrices to insert into Latex documents. | ||
=References= | ==References== | ||
{{Reflist}} | {{Reflist}} |