Lines Matching refs:m
19 import math as m namespace
30 'prod': lambda xs: m.prod(xs[1:], start=xs[0]),
36 m.sqrt(sum((float(x) - mean)**2 for x in xs) / len(xs)))
38 'gmean': lambda xs: Float(m.prod(float(x) for x in xs)**(1/len(xs))),
41 m.exp(m.sqrt(sum(m.log(float(x)/gmean)**2 for x in xs) / len(xs)))
42 if gmean else m.inf)
43 )(m.prod(float(x) for x in xs)**(1/len(xs))),
59 x = m.inf
61 x = -m.inf
64 assert isinstance(x, int) or m.isinf(x), x
68 if self.x == m.inf:
70 elif self.x == -m.inf:
76 assert not m.isinf(self.x)
93 if diff == +m.inf:
95 elif diff == -m.inf:
103 if m.isinf(new) and m.isinf(old):
105 elif m.isinf(new):
106 return +m.inf
107 elif m.isinf(old):
108 return -m.inf
137 x = m.inf
139 x = -m.inf
146 if self.x == m.inf:
148 elif self.x == -m.inf:
189 '∞%' if t == +m.inf
190 else '-∞%' if t == -m.inf
490 '+∞%' if t == +m.inf
491 else '-∞%' if t == -m.inf
496 '+∞%' if t == +m.inf
497 else '-∞%' if t == -m.inf