Beispiel #1
0
def rhophi_eta_tau(lib, beta, rho, phi, eta, 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_eta(lib, rho, phi, eta)
    tee = t.rhophi_eta_tau(lib, rho, phi, eta, tau)
    return (exx, gam * why + bgam * tee, zee, tau)
Beispiel #2
0
def rhophi_eta_tau(lib, gamma, rho, phi, eta, 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_eta(lib, rho, phi, eta)
    tee = t.rhophi_eta_tau(lib, rho, phi, eta, tau)
    return (exx, gam * why + bgam * tee, zee, tau)
Beispiel #3
0
def rhophi_eta_tau(lib, rho, phi, eta, tau):
    return rhophi_z_t(
        lib,
        rho,
        phi,
        z.rhophi_eta(lib, rho, phi, eta),
        t.rhophi_eta_tau(lib, rho, phi, eta, tau),
    )
Beispiel #4
0
def rhophi_eta_tau(lib, rho, phi, eta, tau):
    return rhophi_eta_t(lib, rho, phi, eta,
                        t.rhophi_eta_tau(lib, rho, phi, eta, tau))
Beispiel #5
0
def rhophi_eta_tau(lib, rho, phi, eta, tau):
    return lib.nan_to_num(
        mag.rhophi_eta(lib, rho, phi, eta) / t.rhophi_eta_tau(lib, rho, phi, eta, tau),
        nan=0,
    )
Beispiel #6
0
def rhophi_eta_tau(lib, beta, rho, phi, eta, tau):
    gam = (1 - beta**2)**-0.5
    bgam = beta * gam
    zee = z.rhophi_eta(lib, rho, phi, eta)
    tee = t.rhophi_eta_tau(lib, rho, phi, eta, tau)
    return (rho, phi, gam * zee + bgam * tee, tau)
Beispiel #7
0
def rhophi_eta_tau(lib, gamma, rho, phi, eta, tau):
    gam = lib.absolute(gamma)
    bgam = lib.copysign(lib.sqrt(gam**2 - 1), gamma)
    zee = z.rhophi_eta(lib, rho, phi, eta)
    tee = t.rhophi_eta_tau(lib, rho, phi, eta, tau)
    return (rho, phi, gam * zee + bgam * tee, tau)
Beispiel #8
0
def rhophi_eta_tau(lib, rho, phi, eta, tau):
    return lib.nan_to_num(t.rhophi_eta_tau(lib, rho, phi, eta, tau) / tau,
                          nan=lib.inf)