Learn R Programming

libamtrack (version 0.6.3)

AT.gamma.from.E: AT.gamma.from.E

Description

Returns relativistic gamma

Usage

AT.gamma.from.E(E.MeV.u)

Arguments

E.MeV.u
vector of energies of particle per nucleon [MeV] (array of size n) (see also E.MeV.u).

Value

  • gammavector of results (array of size n)
  • statusstatus

See Also

View the C source code here: http://sourceforge.net/apps/trac/libamtrack/browser/tags/0.6.3/src/AT_Phy sicsRoutines.c#L52

Examples

Run this code
# Compute mass in MeV/c2 for a proton with 1-1000 MeV kinetic energy:
938.3 * AT.gamma.from.E( E.MeV.u = 10^(0:3))$gamma

Run the code above in your browser using DataLab