diff --git a/dev/advanced/index.html b/dev/advanced/index.html index ccf44142..e8707548 100644 --- a/dev/advanced/index.html +++ b/dev/advanced/index.html @@ -79,4 +79,4 @@ julia>
A second run of this command needs about 5.5 s which means the startup time (load and compilation time of the package and the libraries) has been reduced to about 18.4s.
Without a system image the first time execution of the script "simulate_simple.jl" on the same computer is about 71 seconds while the time for the second execution is the same (5.5s). So now about 47s of time are saved after each restart.
add the packages TestEnv
and Revise
to your global environment, not to any project
avoid hard-coded numeric values like 9.81
in the code, instead define a global constant G_EARTH
or read this value from a configuration file
stick to a line length limit of 120 characters
try to avoid dot operators unless you have to.
Bad: norm1 .~ norm(segment)
Good: norm1 ~ norm(segment)
se()
which will load the settings of the active project. To define the active project use a line like set = se("system_3l.yaml")
at the beginning of your program.\cdot
operator for the dot product for improved readabilityforce_eqs[j, i]
+
and *
in single spaces, like 0.5 * (s.pos[s.num_C] + s.pos[s.num_D])
; exception: mass_tether_particle[i-1]
tether_rhs = [force_eqs[j, i].rhs for j in 1:3]
kite_rhs = [force_eqs[j, i+3].rhs for j in 1:3]
- f_xy = dot(tether_rhs, e_z) * e_z
The next steps:
Settings
This document was generated with Documenter.jl version 0.27.25 on Wednesday 11 September 2024. Using Julia version 1.10.5.