Remove dependency on math
@@ -8,7 +8,6 @@ from __future__ import print_function
from array import array
import argparse
-import math
import re
import sys
@@ -34,7 +33,7 @@ def test_gradient_vertical_bt(x, y):
def test_radial_tl(x, y):
- return max(1 - math.sqrt(x * x + y * y), 0.0)
+ return max(1 - (x * x + y * y)**0.5, 0.0)
def test_radial_center(x, y):
