예제 #1
0
def rhophi_z_tau(lib, gamma, rho, phi, z, 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
    tee = t.rhophi_z_tau(lib, rho, phi, z, tau)
    return (exx, gam * why + bgam * tee, zee, tau)
예제 #2
0
def rhophi_z_tau(lib, beta, rho, phi, z, tau):
    gam = (1 - beta**2)**-0.5
    bgam = beta * gam
    exx = x.rhophi(lib, rho, phi)
    why = y.rhophi(lib, rho, phi)
    zee = z
    tee = t.rhophi_z_tau(lib, rho, phi, z, tau)
    return (exx, gam * why + bgam * tee, zee, tau)
예제 #3
0
def rhophi_z_tau(lib, rho, phi, z, tau):
    return rhophi_z_t(lib, rho, phi, z, t.rhophi_z_tau(lib, rho, phi, z, tau))
예제 #4
0
파일: beta.py 프로젝트: pfackeldey/vector
def rhophi_z_tau(lib, rho, phi, z, tau):
    return lib.nan_to_num(
        mag.rhophi_z(lib, rho, phi, z) / t.rhophi_z_tau(lib, rho, phi, z, tau), nan=0
    )
예제 #5
0
def rhophi_z_tau(lib, beta, rho, phi, z, tau):
    gam = (1 - beta**2)**-0.5
    bgam = beta * gam
    zee = z
    tee = t.rhophi_z_tau(lib, rho, phi, z, tau)
    return (rho, phi, gam * zee + bgam * tee, tau)
예제 #6
0
def rhophi_z_tau(lib, gamma, rho, phi, z, tau):
    gam = lib.absolute(gamma)
    bgam = lib.copysign(lib.sqrt(gam**2 - 1), gamma)
    zee = z
    tee = t.rhophi_z_tau(lib, rho, phi, z, tau)
    return (rho, phi, gam * zee + bgam * tee, tau)
예제 #7
0
파일: gamma.py 프로젝트: pfackeldey/vector
def rhophi_z_tau(lib, rho, phi, z, tau):
    return lib.nan_to_num(t.rhophi_z_tau(lib, rho, phi, z, tau) / tau,
                          nan=lib.inf)