Defining and Editing Constants

 You can define constants by creating constants text files which is described below, or you can use the built in Napier constants editor. To work with the constants, tap the Tools menu entry and select Edit Constants.

This will display the constants editing dialog which allows you to add new constants, edit existing ones, reorder them, and delete ones you don’t want. When it first comes up you need to select the Type of constant, that is, which function set button it is under (the default set of constants is under the Misc button).

Here are the parts of the constant definition dialog box:

You can select the function type using the type dropdown and will get a list of the existing constants under that button, then from the middle dropdown, you can select the one to work on.

To create a new constant, just fill in the Name, Value and Help text fields and tap the Insert button. This will drop down the list of existing constants in the selected type from which you can select the one to insert your new constant before. You can change the type by just dropping down the type list and selecting a new one. To put the constant at the end of the list, select the bottom-most entry which is named  <END>.

To edit an existing constant, select the one to edit which will show you the existing field values. Edit them, then tap the Replace button which will replace the one you selected with the new one.

To delete a constant, just select a constant, then tap the Delete button. Note that this doesn’t clear the fields which define that constant, so if you want to insert it in another location, essentially doing a move operation, just tap the Insert button and select the new location for it.

Built In Conversion Constants

These are factors used to convert from one unit to another, e.g. kilometers to miles. The built in conversions are under the Misc dropdown key, but if you define your own functions, they can be loaded under any of the dropdowns.

To use them, just select the constant for the units you have. If you have kilometers and want miles, multiply the value by Km2Mi. If you have miles, divide the miles value by Km2Mi to get kilometers. You can load your own set of constants using the file read functions discussed below.

Ac2Ft

 

Ct2Gm

 

Lk2In

 

 

43560

 

0.2

 

7.92

 

Ac2Ft: sqFt per acre

 

Ct2Gm: gm per caret

 

Lk2In: in per surveyor link

Ac2M

 

Dl2Gm

 

Lt2Qt

 

 

4046.9

 

1.65e-024

 

1.0567

 

Ac2M: sqM per acre

 

Dl2Gm: gm per Dalton

 

Lt2Qt: quarts per liter

Ac2H

 

Dr2Oz

 

Lt2In

 

 

0.40469

 

0.125

 

61.025

 

Ac2H: hectares per acre

 

Dr2Oz: oz per fl dram

 

Lt2In: cuIn per liter

Ag2In

 

Dy2Lb

 

Lt2Oz

 

 

3.937e-009

 

2.2481e-006

 

33.815

 

Ag2In: in per angstrom

 

Dy2Lb: lbs per dyne

 

Lt2Oz: oz per liter

AO2Oz

 

Fr2Mi

 

Ly2Km

 

 

1.0971

 

0.125

 

9.46e+012

 

AO2Oz: oz per apoth oz

 

Fr2Mi: mi per furlong

 

Ly2Km: km per light year

AP2Lb

 

Fp2HP

 

Ly2Mi

 

 

14.696

 

3.0303e-005

 

5.878e+012

 

AP2Lb: atm press in lbs/sqIn

 

Fp2HP: hp per ft lb/min

 

Ly2Mi: mi per light year

AP2Kg

 

Fp2KW

 

M2In

 

 

10332

 

2.2597e-005

 

39.37

 

AP2Kg: atm press in kg/sqM

 

Fp2KW: kwatt per ft lb/min

 

M2In: in per meter

AP2Hg

 

Ft2Ga

 

M2Ft

 

 

76

 

7.481

 

3.2808

 

AP2Hg: atm press in cm Hg

 

Ft2Ga: gal per cuFt

 

M2Ft: ft per meter

Au2Km

 

Gi2Oz

 

Mc2In

 

 

1.495e+008

 

4

 

3.937e-005

 

Au2Km: km per astro unit

 

Gi2Oz: oz per gill

 

Mc2In: in per micron

BG2Ga

 

Gm2Oz

 

Mg2Oz

 

 

1.2009

 

0.035274

 

3.5274e-005

 

BG2Ga: gals per Imp gal

 

Gm2Oz: oz per gram

 

Mg2Oz: oz per mg

BT2KW

 

Gr2Oz

 

Mi2Ft

 

 

0.000293

 

0.0022857

 

5280

 

BT2KW: kilowatt hrs per BTU

 

Gr2Oz: oz per grain

 

Mi2Ft: ft per mi

BT2HP

 

Hd2In

 

NM2Mi

 

 

0.00039292

 

4

 

0.86836

 

BT2HP: horse power per BTU

 

Hd2In: in per hand

 

NM2Mi: mi per nautical mi

BT2Jl

 

Hh2Ga

 

Pk2Bu

 

 

1054.6

 

63

 

0.25

 

BT2Jl: joules per BTU

 

Hh2Ga: gals per hogshead

 

Pk2Bu: bushels per peck

Bu2Ft

 

HP2BT

 

Ps2Km

 

 

1.2444

 

0.70696

 

3.084e+013

 

Bu2Ft: cuFt per bushel

 

HP2BT: BTU/sec per hp

 

Ps2Km: km per parsec

C2M

 

HP2Fp

 

Pt2In

 

 

2.9979e+008

 

550

 

0.01389

 

C2M: light vel in M/sec

 

HP2Fp: ftlbs/sec per hp(elect)

 

Pt2In: in per point

C2Mi

 

In2Cm

 

Qt2In

 

 

1.8628e+005

 

2.54

 

57.749

 

C2Mi: light vel miles/sec

 

In2Cm: cm per inch

 

Qt2In: cuIn per quart

Cb2In

 

In2Oz

 

Rd2Ft

 

 

18

 

0.5541

 

16.5

 

Cb2In: in per cubit

 

In2Oz: oz per cuIn

 

Rd2Ft: ft per surveyor rod

Cc2In

 

Kg2Lb

 

SD2Sc

 

 

0.061023

 

2.2046

 

86164

 

Cc2In: cuIn per cc

 

Kg2Lb: lbs per kg

 

SD2Sc: secs per sidereal day

Cc2Oz

 

Km2Ft

 

St2Lb

 

 

0.033814

 

3280.8

 

14

 

Cc2Oz: oz per cc

 

Km2Ft: ft per km

 

St2Lb: lbs per stone

Ch2Ft

 

Km2Mi

 

Tn2Kg

 

 

66

 

0.62137

 

907.18

 

Ch2Ft: ft per surveyor chain

 

Km2Mi: mi per km

 

Tn2Kg: kg per US ton

Cm2In

 

Lg2Mi

 

Yr2Dy

 

 

0.3937

 

3

 

365.24

 

Cm2In: in per cm

 

Lg2Mi: mi per league

 

Yr2Dy: days per year solar