Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 3.61 KB

README.md

File metadata and controls

34 lines (28 loc) · 3.61 KB

lab1

Description

In this lab the error between analytical and numerical derivative is investigated.

Used functions:

  1. sin(x^2)
  2. cos(sin(x))
  3. exp(sin(cos(x)))
  4. ln(x + 3)
  5. sqrt(x + 3)

Formulas for numerical derivatives as they are mentioned in the code:
formula (2)
formula (3)
formula (4)
formula (5)
formula (6)

The errors are computing for the next x_0 and h:
x_0=5
h_n

Run

After building and installing you can run lab1 using combination of the following options:

  • just lab1 - compute errors and plot graphs in several windows
  • lab1 -o 'output-type' - determine plot output type, can be jpg,pngorwindow, window is default
  • lab1 -v or lab1 --verbose - enable verbose logging, can be useful for debugging
  • lab1 -size 'width'x'height' - set plotting image size, 'width' and 'height' must be unsigned integers, 1600x900 is default
  • lab1 --nonlinear - plot with y-axis logarithmic scale
  • lab1 --dump-data - dump errors data to .txt files into output directory
  • lab1 -od 'outdir' - change output directory to 'outdir', 'outdir'should be already created directory, output/ is default
  • lab1 -q - if output type is window don't plot graphs (quiet run)