kozub / OpenMP-TrapezoidalRule-Integral

Calculating value of integral using trapezoidal rule in parallel (OpenMP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requirements:
    Installed: OpenMP and GNU libmatheval

Compilation:
    make

Running:
    ./integral_omp <n> <a> <b> <k> <f>

    where:
         * n - number of threads
         * a - beginning
         * b - end
         * k - number of trapezoids
         * f - function

Example:
     ./integral_omp 2 0 10 10000000 x^2

Result:
    Time: 257.299ms
    Integral value: 333.333

About

Calculating value of integral using trapezoidal rule in parallel (OpenMP)

License:Apache License 2.0


Languages

Language:C++ 94.7%Language:Makefile 5.3%