Advertisement
Guest User

Untitled

a guest
Mar 13th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. def check_accuracy(reference, approximation, precision, start, end, resolution):
  2.   inaccurate_zones = []
  3.   x = start
  4.   while x <= end:
  5.     if abs(reference(x) - approximation(x)) > precision:
  6.       inaccurate_zones.append(x)
  7.     x += resolution
  8.   return inaccurate_zones
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement