Пример #1
0
def rhophi_theta_tau(lib, beta, rho, phi, theta, tau):
    gam = (1 - beta**2)**-0.5
    bgam = beta * gam
    exx = x.rhophi(lib, rho, phi)
    why = y.rhophi(lib, rho, phi)
    zee = z.rhophi_theta(lib, rho, phi, theta)
    tee = t.rhophi_theta_tau(lib, rho, phi, theta, tau)
    return (exx, gam * why + bgam * tee, zee, tau)
Пример #2
0
def rhophi_theta_tau(lib, gamma, rho, phi, theta, tau):
    gam = lib.absolute(gamma)
    bgam = lib.copysign(lib.sqrt(gam**2 - 1), gamma)
    exx = x.rhophi(lib, rho, phi)
    why = y.rhophi(lib, rho, phi)
    zee = z.rhophi_theta(lib, rho, phi, theta)
    tee = t.rhophi_theta_tau(lib, rho, phi, theta, tau)
    return (exx, gam * why + bgam * tee, zee, tau)
Пример #3
0
def rhophi_theta_tau(lib, rho, phi, theta, tau):
    return rhophi_z_t(
        lib,
        rho,
        phi,
        z.rhophi_theta(lib, rho, phi, theta),
        t.rhophi_theta_tau(lib, rho, phi, theta, tau),
    )
Пример #4
0
def rhophi_theta_tau(lib, rho, phi, theta, tau):
    return rhophi_theta_t(lib, rho, phi, theta,
                          t.rhophi_theta_tau(lib, rho, phi, theta, tau))
Пример #5
0
def rhophi_theta_tau(lib, rho, phi, theta, tau):
    return lib.nan_to_num(
        mag.rhophi_theta(lib, rho, phi, theta)
        / t.rhophi_theta_tau(lib, rho, phi, theta, tau),
        nan=0,
    )
Пример #6
0
def rhophi_theta_tau(lib, beta, rho, phi, theta, tau):
    gam = (1 - beta**2)**-0.5
    bgam = beta * gam
    zee = z.rhophi_theta(lib, rho, phi, theta)
    tee = t.rhophi_theta_tau(lib, rho, phi, theta, tau)
    return (rho, phi, gam * zee + bgam * tee, tau)
Пример #7
0
def rhophi_theta_tau(lib, gamma, rho, phi, theta, tau):
    gam = lib.absolute(gamma)
    bgam = lib.copysign(lib.sqrt(gam**2 - 1), gamma)
    zee = z.rhophi_theta(lib, rho, phi, theta)
    tee = t.rhophi_theta_tau(lib, rho, phi, theta, tau)
    return (rho, phi, gam * zee + bgam * tee, tau)
Пример #8
0
def rhophi_theta_tau(lib, rho, phi, theta, tau):
    return lib.nan_to_num(t.rhophi_theta_tau(lib, rho, phi, theta, tau) / tau,
                          nan=lib.inf)