Commit 2687339e authored by Alberto Ramos's avatar Alberto Ramos

Updated documentation

parent 7257bcfa
...@@ -45,6 +45,7 @@ mchist ...@@ -45,6 +45,7 @@ mchist
window window
details details
neid neid
derivative
``` ```
## Error propagation in iterative algorithms ## Error propagation in iterative algorithms
......
...@@ -213,6 +213,12 @@ All observables are stored in a single `BDIO` record of type `BDIO_BIN_GENERIC`. ...@@ -213,6 +213,12 @@ All observables are stored in a single `BDIO` record of type `BDIO_BIN_GENERIC`.
- Then a `Vector{String}` that contains the replica names. - Then a `Vector{String}` that contains the replica names.
- Finally a `Vector{Int32}` that contains the the configuration index where each measurement has been performed. - Finally a `Vector{Int32}` that contains the the configuration index where each measurement has been performed.
It is encouraged that the first record of the `BDIO` file is an
`ASCII` human readable record explaining the estructure of the file. By
convention, this record has `user info=1`. An example file containing
the
!!! alert !!! alert
Obviously this weird format is what it is for some legacy reasons, but it is strongly encouraged that new implementations respect this standard with all its weirdness. Obviously this weird format is what it is for some legacy reasons, but it is strongly encouraged that new implementations respect this standard with all its weirdness.
......
...@@ -17,12 +17,12 @@ Determines the derivate of the observable `a` with respect to observable `b` (i. ...@@ -17,12 +17,12 @@ Determines the derivate of the observable `a` with respect to observable `b` (i.
using ADerrors # hide using ADerrors # hide
# Put some data # Put some data
a = uwreal(randn(2000), "Ensemble test A", ["R0", "Rep 1", "Last rep"], [1000, 550, 450]) a = uwreal(1.2 .+ randn(2000), "Ensemble test A", ["R0", "Rep 1", "Last rep"], [1000, 550, 450])
b = uwreal(randn(2034), "Ensemble test B", ["R0XX", "XRep 1", "YLast rep"], [1000, 584, 450]) b = uwreal(0.8 .+ randn(2034), "Ensemble test B", [1000, 584, 450])
d = sin(a+b) d = sin(a+b)
println("Derivative of d w.r.t a: ", derivative(d, a)) println("Derivative of d w.r.t a: ", derivative(d, a))
println("Derivative of d w.r.t a^2: ", derivative(d, a^2)) println("Derivative of d w.r.t log(a): ", derivative(d, log(a)))
``` ```
""" """
function derivative(a::uwreal, p::uwreal) function derivative(a::uwreal, p::uwreal)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment