Matlab2Julia code translation of the book "Numerical Methods and Optimization in Finance"