Problem "LaTeX"

  1. Implement the error-function by integrating (= finding the solution) numerically the differential equation
    u'(x) = (2/√π) e-x²
    
    with the initial condition
    u(0) = 0 .
    
  2. Make a plot of your error function in PDF or LaTeX format. Your main function must take three command-line arguments — let us call them a, b, and dx — and it must write (to the standard output) a table of error-function values from a to b with step dx. The command in the Makefile should be something like
    ./main -3 3 0.2 > data.txt
    
  3. Make a one- or two-page report, in LaTeX, about the error function using the material from the corresponding article in Wikipedia.
  4. Include your plot in the report.