TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Method of successive approximations using fixed-point iteration method. More...
#include <cmath>
#include <iostream>
Go to the source code of this file.
Functions | |
static float | eq (float y) |
static float | eqd (float y) |
int | main () |
Method of successive approximations using fixed-point iteration method.
Definition in file successive_approximation.cpp.
|
static |
equation 1
\[f(y) = 3y - \cos y -2\]
Definition at line 12 of file successive_approximation.cpp.
|
static |
equation 2
\[f(y) = \frac{\cos y+2}{2}\]
Definition at line 17 of file successive_approximation.cpp.
int main | ( | void | ) |
Main function
Definition at line 20 of file successive_approximation.cpp.