(st:str, cnt:int)
| 147 | raise excs[0] if len(excs) == 1 else ExceptionGroup(err_msg + " is available", excs) |
| 148 | |
| 149 | def pluralize(st:str, cnt:int): return f"{cnt} {st}"+('' if cnt == 1 else 's') |
| 150 | |
| 151 | # for length N coefficients `p`, returns p[0] * x**(N-1) + p[1] * x**(N-2) + ... + p[-2] * x + p[-1] |
| 152 | def polyN(x:T, p:list[float]) -> T: return functools.reduce(lambda acc,c: acc*x+c, p, 0.0) # type: ignore |
no outgoing calls
no test coverage detected
searching dependent graphs…