Lines Matching refs:atol

19     atol = 5
20 assert all_near_zero(0, atol=atol)
21 assert all_near_zero(4.5, atol=atol)
22 assert not all_near_zero(5.5, atol=atol)
24 assert all_near_zero([-4.5, 0, 1, 4.5, 3], atol=atol)
25 assert not all_near_zero([-4.5, 0, 1, 4.5, 30], atol=atol)
29 atol = 5
30 assert all_near_zero_mod(0, 100, atol=atol)
31 assert all_near_zero_mod(4.5, 100, atol=atol)
32 assert not all_near_zero_mod(5.5, 100, atol=atol)
34 assert all_near_zero_mod(100, 100, atol=atol)
35 assert all_near_zero_mod(95.5, 100, atol=atol)
36 assert not all_near_zero_mod(94.5, 100, atol=atol)
38 assert all_near_zero_mod(-4.5, 100, atol=atol)
39 assert not all_near_zero_mod(-5.5, 100, atol=atol)
41 assert all_near_zero_mod(104.5, 100, atol=atol)
42 assert not all_near_zero_mod(105.5, 100, atol=atol)
44 assert all_near_zero_mod([-4.5, 0, 1, 4.5, 3, 95.5, 104.5], 100, atol=atol)
45 assert not all_near_zero_mod([-4.5, 0, 1, 4.5, 30], 100, atol=atol)
49 atol = 5
50 assert near_zero(0, atol=atol)
51 assert near_zero(4.5, atol=atol)
52 assert not near_zero(5.5, atol=atol)
56 atol = 5
57 assert near_zero_mod(0, 100, atol=atol)
58 assert near_zero_mod(4.5, 100, atol=atol)
59 assert not near_zero_mod(5.5, 100, atol=atol)
61 assert near_zero_mod(100, 100, atol=atol)
62 assert near_zero_mod(95.5, 100, atol=atol)
63 assert not near_zero_mod(94.5, 100, atol=atol)
65 assert near_zero_mod(-4.5, 100, atol=atol)
66 assert not near_zero_mod(-5.5, 100, atol=atol)
68 assert near_zero_mod(104.5, 100, atol=atol)
69 assert not near_zero_mod(105.5, 100, atol=atol)