Searched refs:relative_error (Results 1 – 3 of 3) sorted by relevance
60 double *relative_error, in IsClose() argument67 if (!relative_error) { in IsClose()68 relative_error = &local_relative_error; in IsClose()71 *relative_error = *absolute_error / max(fabs(x), fabs(y)); in IsClose()75 *relative_error = *absolute_error; in IsClose()77 return fabs(*relative_error) < fabs(relative_precision); in IsClose()177 double relative_error, absolute_error; in Evaluate() local182 &relative_error, in Evaluate()185 relative_error); in Evaluate()190 absolute_error, relative_error, in Evaluate()
12 double relative_error = (A*x - b).norm() / b.norm(); // norm() is L2 norm in main() local13 cout << "The relative error is:\n" << relative_error << endl; in main()
193 var relative_error = Math.abs(a - b) / (a + b);194 if (relative_error < epsilon)197 ' to be within ' + epsilon + ' was ' + relative_error;