MCPcopy Create free account
hub / github.com/Lakhankumawat/LearnCPP / value_of_function

Function value_of_function

M-MathematicalAlgorithms/BisectionMethod.cpp:7–10  ·  view source on GitHub ↗

epsilon be the error in determing roots of a function take an example of a function whose solution we have to find Let function be: x^3 - x^2 + 2

Source from the content-addressed store, hash-verified

5// take an example of a function whose solution we have to find
6// Let function be: x^3 - x^2 + 2
7double value_of_function(double x)
8{
9 return x*x*x - x*x + 2;
10}
11
12// Prints root of func(x) with error of epilon
13void bisection_method(double a, double b)

Callers 1

bisection_methodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected