1. LON-CAPA Logo
  2. Help
  3. Log In
 

Entering Units on LON-CAPA

One of the features of LON-CAPA is its ability to handle units intelligently.

Many LON-CAPA problems give the student some physical quantities and ask for a physical quantity as an answer. Basically, if you are given units in a problem, usually you should respond with units.

The units are symbols consisting of one or more letters, listed in the tables below. A space is not required between the number and the units (but you can enter a space if you like).

The student has some freedom about what units to use in the response, but the units must be appropriate for the physical quantity being calculated. For example, if you are asked for a length, you may enter a number with any of the length units (ft, yd, m, cm, mi, km, and so on).

LON-CAPA will read the response with units and automatically convert the units when necessary to check if the response was equivalent to the correct answer. Thus, all of the following responses are equivalent:

Similarly, these are also equivalent responses (at least to 5 significant figures):

You may combine any of the defined unit symbols in any way which is appropriate for physical quantity, using the * and / symbols for multiplication and division, and ^ for exponentiation.

For example, if you are asked to find a speed, you can give an answer with any units which represent length divided by time, such as the following examples:

The asterisk * symbol used to represent multiplication is optional. If you enter two units with a space between them, multiplication is assumed. For example, "N m" is understood to be Newtons * meters, a derived unit of work (also called a Joule).

The carat ^ symbol is used to represent exponentiation. For example, an area unit like square meters could be entered "m^2", although "m*m" and "m m" also work (as described above).

While you can enter as many or few spaces as you like before or after a unit symbol, never separate the unit "word" itself by spaces. Clearly, LON-CAPA would misunderstand if you entered "m in" (which looks like meters times inches, an area) for "min" (which is a time duration).

If you enter the wrong units, you will be given a response indicating that fact, and you are NOT charged a try for that response. LON-CAPA will not "grade" a response until the units are correct.

Base Units

namesymbolcomment
metermlength
kilogramkgmass
secondstime
ampereAelectric current
kelvinKthermodynamic temperature
molemolamount of substance
candelacdluminous intensity
decibeldBlog of pressure amplitude

Prefixes

Prefixsymbolfactor
yottaY10^{24}
zettaZ10^{21}
exaE10^{18}
petaP10^{15}
teraT10^{12}
gigaG10^9
megaM10^6
kilok10^3
hectoh10^2
decid10^-1
centic10^-2
millim10^-3
microu10^-6
nanon10^-9
picop10^{-12}
femtof10^{-15}
attoa10^{-18}
zeptoz10^{-21}
yoctoy10^{-24}

Derived Units

namesymbolequivalencecomment
gramg0.001 kgmass
dayday24.0 hrtime
yearyr365.24 daytime
hourhr3600. stime
hourh3600. stime
minutemin60 stime
poundlb0.45359237 kgmass
ounceoz1.77185E-3 kgmass
inchin2.54 cmlength
footft12 inlength
milemi5280 ftlength
yardyd0.9144 mlength
nautical_milen_mi6080 ftlength, nautical mile (UK)
roodrood1210 yd^2area, rood
acreacre4840 yd^2area, acre
hertzHz1/sfrequency
litreL10^3* cm^3volume
newtonNm*kg/s^2force
pound_forcelbf4.44822 Nforce
dynedyn1E-5 Nforce
pascalPaN/m^2pressure, stress
barbar1E5 Papressure
mmHgmmHg1.33322E2 Papressure, millimeter of mercury
torrtorr1 mmHgpressure
atmatm760 torrstandard atmosphere
jouleJN*menergy, work, heat
electronvolteV1.6021892E-19 Jenergy
caloriecal4.1868 Jenergy
BtuBtu1.05506E3 Jenergy
wattWJ/spower, radiant flux
coulombCA*selectric charge
voltVJ/Celectric potential, electromotive force
ohmohmV/Aelectric resistance, use this in /ANS
ohmohmsV/Aelectric resistance
ohmOhmV/Aelectric resistance
ohmOhmsV/Aelectric resistance
siemensS1/Ohmelectric conductance
faradFC/Velectric capacitance
teslaTV*s/m^2magnetic flux density
weberWbV*smagnetic flux
henryHV*s/Ainductance
radianradm/mplane angle
degreedeg1.745329E-2 radplane angle (Pi rad=180 deg)
steradiansrm^2/m^2solid angle
lumenlmcd*srluminous flux
luxlxcd*sr/m^2illuminance
becquerelBq1/sactivity (radioactive)
grayGyJ/kgabsorbed dose (of radiation)
sievertSvJ/kgdose equivalent (dose equivalent index)
astroUnitAU1.49598E11 mmean distance earth to sun
celciusdegC1 Kmultiplicatively OK
farenheightdegF.5555555555 Kmultiplicatively OK