Home
last modified time | relevance | path

Searched refs:abs_tol (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/py_engine/tests/float/
A Dmath_isclose.py27 test(1.0, 1.0, rel_tol=0.0, abs_tol=0.0)
28 test(2.35e-100, 2.35e-100, rel_tol=0.0, abs_tol=0.0)
29 test(2.1234e100, 2.1234e100, rel_tol=0.0, abs_tol=0.0)
39 test(0.0, 1e-10, abs_tol=1e-10, rel_tol=0.1)
40 test(0.0, 1e-10, abs_tol=0.0, rel_tol=0.1)
44 isclose(0, 0, abs_tol=-1)
/AliOS-Things-master/components/py_engine/engine/py/
A Dmodmath.c218 const mp_float_t abs_tol = mp_obj_get_float(args[ARG_abs_tol].u_obj); in MATH_FUN_2() local
219 if (rel_tol < (mp_float_t)0.0 || abs_tol < (mp_float_t)0.0) { in MATH_FUN_2()
229 if ((difference <= abs_tol) || in MATH_FUN_2()

Completed in 3 milliseconds