Beispiel #1
0
def _hc(k, cs, rho, omega):
    return (cs / sin(omega) * (rho ** k) * sin(omega * (k + 1)) *
            greater(k, -1))
Beispiel #2
0
def _hc(k, cs, rho, omega):
    return (cs / sin(omega) * (rho**k) * sin(omega * (k + 1)) * greater(k, -1))
Beispiel #3
0
 def __call__(self, x):
     "Execute the call behavior."
     return umath.logical_or(umath.greater(x, self.y2), umath.less(x, self.y1))
Beispiel #4
0
def _round(x):
    if umath.greater(x, 0.):
        return umath.floor(x)
    else:
        return umath.ceil(x)
def _round(x):
    if umath.greater(x, 0.0):
        return umath.floor(x)
    else:
        return umath.ceil(x)