def wc(q,mc2,B):
    """
    Calculate the electron gyrofrequency
    
    q is the charge in multiples of the fundamental
    mc2 is the particle rest mass in MeV
    B is the magnetic field magnitude in nT
    """
    cof = 89.8755311
    res = cof*q*B/mc2
    return res