nocs

NOCS (Not Only Colliding Spheres) exact 2D gas dynamics framework

View on GitHub

Class newton

Overview

Class newton implements the Newton-Raphson algorithm for a generic parabola y = a*x^2 + b*x + c.

Example usage

std :: cout << newton :: quadratic(0, 0, 2) << std :: endl; // Prints NaN
std :: cout << newton :: quadratic(0, 0, -4, -1) << std :: endl; // Prints -2

Interface

Static members

Static methods