public float CountingNewPoint(float a, float b) //finding new point { float newPoint; var temp1 = b - a; var temp2 = funk.FunctionForTwo(a, b); temp1 = temp1 / temp2; temp2 = funk.Function(b); newPoint = b - temp2 * temp1; return(newPoint); }