Here is a C++ implementation of the Method of Bisections, by Bernt Odegaard.
#include <cmath>
#include "fin_recipes.h"
double option price implied volatility call black scholes bisections(constdouble& S,
constdouble& K,
constdouble& r,
constdouble& time,
constdouble& option price){
if...