# Webscalp help

## SUMMARY:

## Commands in alphabetical order

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |
---|---|---|---|---|

_DB | decibels to ratio | Z = ratio(Z) | convert decibels to ratio; inverse of DB | |

- | minus (subtraction) | Z = Y - Z | ||

! | factorial | Z = Z! | calculate factorial of Z | FACT, FACTORIAL |

@AZ | prompted version of AZ | great circle azimuth from one point to another | @AZIMUTH | |

@DIST | prompted version of DIST | calculate distance between two points | ||

@GC | prompted version of GC | calculate great circle distance and bearing between two points | ||

@LGAR | prompted version of LGAR | calculate location given azimuth and range | ||

@POLAR | prompted version of POLAR | |||

@POLY | prompted version of POLY | |||

@RAGL | prompted version of RAGL | calculate range and azimuth given location | @GC | |

@RECT | prompted version of RECT | |||

* | times (multiplication) | Z = Y * Z | ||

/ | divide (division) | Z = Y / Z | ||

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

% | modulus (residue) | Z = Z % MODULUS | return the remainder of Z after dividing by Modulus | MOD |

+ | plus (addition) | Z = Y + Z | ||

+D | date plus day | Z = Y + Z where Y is valid date and Z is offset in days | determines new date that is Z days away from the date in Y; Z can be positive or negative | D+ |

+M | date plus month | Z = Y + X where Y is valid date and Z is offset in months | determines new date that is Z groups of 30 days away from the date in Y; Z can be positive or negative | M+ |

+W | date plus week | Z = Y + X where Y is valid date and Z is offset in weeks | determines new date that is Z groups of 7 days away from the date in Y; Z can be positive or negative | W+ |

+Y | date plus year | Z = Y + X where Y is valid date and Z is offset in years | determines new date that is Z years away from the date in Y; Z can be positive or negative | Y+ |

< | pop stack | Z = Y ; Y = X ; ... R = Q | POP | |

<> | swap Z and Y | Z = Y; Y = Z | SWAP | |

> | push stack | Q = R ; R = S ; ...Y = Z | PUSH | |

ABS | absolute value | Z = |Z| | ||

ACOS | arcosine | Z = acos(Z) | ||

ACRE_FT2 | acres to square feet | Z = sqft(Z) | convert Z in acres to square feet | ACRE->FT2 |

ACRE_HA | acres to hectares | Z = ha(Z) | convert Z in acres to hectares | ACRE->HA |

ACRE_M2 | acres to square metres | Z = sqmetres(Z) | convert Z in acres to square metres | ACRE->M2 |

ASIN | arcsine | Z = asin(Z) | ||

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

ATAN | arctangent | Z = atan(Z) | ||

ATAN2 | 4-quadrant arctan | Z = atan(Z/Y) | ||

AZ | calculate azimuth between two locations | Z = azimuth in degrees of bearing from one point to another | assumes points have been pushed onto stack long1, lat1, long2, lat2 in order | AZIMUTH |

BIN | diplay binary equivalent | (no effect on stack) | show binary equivalent of Z | |

C | speed of light (m/s) | Q = R ; R = S ; ...Y = Z; Z = c | speed of light in m/s | |

C_F | convert Celsius to farenheit | Z = Celsius(Z) | convert Z in Celsius to Farenheit | C->F |

CAL | show calendar | (no effect on stack) | display calendar if Z is a valid date | |

CENTER | center the display | (no effect on stack) | show the large digits in the center of the display | CENTRE |

CHS | change sign | Z = -1 * Z | ||

CL | clear Z | Z = 0 | ||

CLA | clear all | Z = Y =..Q = 0 ; M[0] = M[1]=. .M[9] = 0 | ||

CLM | clear memory | M[0] = M[1]= ..M[9] = 0 | ||

CLS | clear stack | Z = Y = ..Q = 0 | ||

CM_IN | centimetres to inches | Z = in(Z) | convert Z in centimetres to inches | CM->IN |

COMPACT | toggle compact/normal | (no effect on stack) | toggles between compact display and full display | |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

COS | cosine | Z = cos(Z) | ||

DB | ratio to decibels | Z = DB(Z) | convert ratio in Z to decibels; inverse of _DB | |

DDAY | number of days between two dates | Z = Z - Y in days | calculate difference in days between two dates, assuming that Z and Y are both valid dates | DDATE |

DEG | assume angles are in degrees | (no effect on stack) | ||

DFZ | derivative of polynomial function | Z = F'(Z) | calculate derivative of polynomial whose coefficients are defined in M[0]..M[ORDER] | DF(Z) |

DISPLAY | set display type | (no effect on stack) | set type of main display appearance depending on value of Z = 0,1,2,3... | |

DIST | distance between two points | Z = sqrt( (Z-X)*(Z-X) +(Y-W)*(Y-W)) | calculate the cartesian distance between two points pushed on the stack x1, y1, x2, y2 | DISTANCE |

DM | show deg:min.decimal_min | (no effect on stack) | show degrees (hours), minutes, and decimal minutes equivalent of Z assuming Z is in decimal degrees (hours) | HM |

DMS | show deg:min:s | (no effect on stack) | show degrees (hours), minutes, and seconds equivalent of Z assuming Z is in decimal degrees (hours) | HMS |

DOW | day of week | Z =dow(Z) | Z = 1..7 (Sunday..Sat) assuming Z contains valid date | |

DOY | day of year | Z = DOY(Z) | Z = 1..366 assuming Z contains valid date | JULIAN |

EXIT | quit | (no effect on stack) | exit program | DONE, QUIT, STOP |

EXP | natural exponential | Z = e^Z | calculate natural exponential of Z | |

EXP10 | base 10 exponential | Z = 10^Z | calculate 10 to the power Z | |

F_C | Farenheit to Celsius | Z = Farenheit(Z) | convert Z in degrees Celsius to Farenheight | F->C |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

FACT | factorial | Z = Z! | calculate factorial of Z | !, FACTORIAL |

FIX | fixed point display | (no effect on stack) | display in fixed point as specified by FMT | |

FLEX | flexible decimal display | (no effect on stack) | dynamically adjust the number of decimal places shown | |

FMT | set the format for fixed point display | (no effect on stack) | show a figures before the decimal and b figures after the decimal assuming that Z = a.b |
FORMAT |

FONT | set font type | (no effect on stack) | set font for main display depending on value of Z=0,1,2,3... | |

FONTSIZE | set font size | (no effect on stack) | set font size for main display depending on value of Z in the range 1.0...10.0 | |

FPS_MPH | ft/s to mph | Z = MPH(Z) | convert Z in feet per second to miles per hour | FPS->MPH |

FRAC | fractional portion | Z = Z - int(Z) | return the fractional portion of Z | |

FT_M | ft to m | Z = m(Z) | convert Z in feet to metres | FT->M |

FT2_ACRE | square ft to acres | Z = acre(Z) | convert Z in square feet to acres | FT2->ACRE |

FT2_HA | square feet to hectares | Z = ha(Z) | convert Z in square feet to hectares | FT2->HA |

FT2_M2 | square feet to square metres | Z = sqmetres(Z) | convert Z in square feet to square metres | FT2->M2 |

FT3_M3 | cubic feet to cubit metres | Z = cubicmetres(Z) | convert Z in cubic feet to cubic metres | FT3->M3 |

FZ | polynomial function | Z = F(Z) | calculate polynomial whose coefficients are defined in M[0]..M[ORDER] | F(Z) |

G | gravitational constant (m/s2) | Q = R ; R = S ; ...Y = Z; Z = g | gravitational constant in metres per second squared | |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

G_OZ | grams to ounces | Z = ounces(Z) | convert Z in grams to ounces | G->OZ |

GC | great circle range and azimuth | Z = range; Y = azimuth | calculate great circle distance from Latitude, Longitude assuming that Y = latitude and Z = longitude of remote point | RAGL |

GIMP_L | Imperial gallons to litres | Z = litres(Z) | convert Z in Imperial gallons to litres | GIMP->L |

GUS_L | US gallons to litres | Z = litres(Z) | convert Z in US gallons to litres | GUS->L |

HA_ACRE | hectares to acres | Z = acre(Z) | convert Z in hectares to acres | HA->ACRE |

HA_FT2 | hectares to square feet | Z = sqft(Z) | convert Z in hectares to square feet | HA->FT2 |

HELP | help | (no effect on stack) | show the help file | ? |

HEX | display hex equivalent | (no effect on stack) | show hexadecimal equivalent of Z | HEXADECIMAL |

HM | show hours:minutes.decimal_minutes | (no effect on stack) | show hours:minutes:decimal_minutes of Z assuming that Z is in decimal hours | DM |

HMS | show hours:minutes:seconds | (no effect on stack) | show hours:minutes:seconds of Z assuming that Z is in decimal hours | DMS |

IN_CM | inches to centimetres | Z = cm(Z) | convert Z in inches to centimetres | IN->CM |

INCLTAX1 | price including TAX1 | Z = Z + tax1(Z) | show Z including TAX1 | INCLGST, INCLHST, INCLTAX, INCLVAT |

INCLTAX2 | price including TAX2 | Z = Z + tax2(Z) | show Z including TAX2 | INCLPST |

INPUT | set input space size | (no effect on stack) | number of lines of input space is set to value in Z for 0 < Z <= 20 | |

INT | integer portion | Z = int(Z) | return integer portion of Z | |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

JULIAN | day of year | Z = DOY(Z) | Z = 1..366 assuming Z contains valid date | DOY |

KG_LB | kg to pounds | Z = lb(Z) | convert Z in kilograms to pounds | KG->LB |

KM_MI | km to miles | Z = mi(Z) | convert Z in kilometres to miles | KG->MI |

KPH_KT | kph to knots | Z = KT(Z) | convert Z in kilometres per hour to nautical miles per hour | KG->KT |

KT_KPH | knots to kpg | Z = KPH(Z) | convert Z in nautical miles per hour to kilometres per hour | KT->KPH |

KT_MPH | knots to mph | Z = MPH(Z) | convert Z in nautical miles per hour to miles per hour | KT->MPH |

L_GIMP | litres to Imperial gallons | Z = gallons(Z) | convert Z in litres to Imperial gallons | L->GIMP |

L_GUS | litres to US gallons | Z = US gallons(Z) | convert Z in ltres to US gallons | L->GUS |

L_OZ | litres to ounces | Z = ounces(Z) | convert Z in ltres to ounces | L->OZ |

LAT | set latitude | LATITUDE = Z | set Latitude | STOLAT |

LB_KG | pounds to kg | Z = kg(Z) | convert Z in pounds to kilograms | LB->KG |

LEFT | left justify | (no effect on stack) | left justify main display | |

LGAR | location given azimuth and range | Z = longitude; Y = latitude | calculate new location from Latitude,Longitude assuming Y = aziumth, Z = range | |

LN | natural logarithm | Z = ln(Z) | calculate the natural logarithm of Z | |

LOG | base 10 logarithm | Z = log(Z) | calculate the base-10 logarithm of Z | |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

LOG2 | base 2 logarithm | Z = log2(Z) | calculate the base-2 logarithm of Z | |

LOGY | base Y logarithm | Z = logY(Z) | calculate the base-Y logarithm of Z | LOGYZ |

LOGYZ | base Y logarithm | Z = logY(Z) | calculate the base-Y logarithm of Z | LOGY |

LOGZY | base Z logarithm | Z = logZ(Y) | calculated the base-Z logarithm of Y | |

LONG | set longitude | LONGITUDE = Z | Set Longitude | STOLONG |

LOWER | lower limit for fixed point | LOWER = Z (no effect on stack) | anything smaller than this value shown in scientific notation | |

LPHK_MPGIMP | litres per hundred km to miles per Imperial gallon | Z = MPG(Z) | convert Z in litres per 100 km to miles per Imperial gallon | LPHK->MPGIMP |

LPHK_MPGUS | litres per hundred km to miles per US gallon | Z = MPG(Z) | convert Z in litres per 100 km to miles per US gallon | LPHK->MPGUS |

M_FT | metres to feet | Z = feet(Z) | convert Z in metres to feet | M->FT |

M2_ACRE | square metres to acres | Z = acre(Z) | convert Z in square metres to acres | M2->ACRE |

M2_FT2 | square metres to square feet | Z = sq_ft(Z) | convert Z in square metres to square feet | M2->FT2 |

M3_FT3 | cubic metres to cubic feet | Z = cu_ft(Z) | convert Z in cubic metres to cubic feet | M3->FT3 |

M3_YD3 | cubic metres to cubic yards | Z = yd(Z) | covert Z in cubic metres to cubic yards | M3->YD3 |

MAP | show map of Latitude, Longitude | (no effect on stack) | Assuming Y = Latitude, Z = Longitude, then show Google map centred on this location | |

MI_KM | miles to km | Z = km(Z) | convert Z in miles to kilometres | MI->KM |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

MIL | assume angles are in mils | (no effect on stack) | ||

MOD | calculate modulus (residue) | Z = Z % MODULUS | return the remainder of Z after dividing by Modulus | % |

MODULUS | set modulus | MODULUS = Z; no effect on stack | set Modulus for subsequent MOD commands | |

MOY | month of year | Z = moy(Z) | Z = 1..12 assuming that Z contains a valid date | MON, MONTH |

MPGIMP_LPHK | miles per Imperial gallon to litres per hundred km | Z = LPHK(Z) | convert Z in miles per Imerial gallons to litres per 100 km | MPGIMP->LPHK |

MPGUS_LPHK | miles per US gallong to litres per hundred km | Z = LPHK(Z) | convert Z in miles per US gallon to litres per 100 km | MPGUS->LPHK |

MPH_FPS | miles per hour to feet per second | Z = FPS(Z) | convert Z in miles per hour to feet per second | MPH->FPS |

MPH_KT | miles per hours to nautical miles per hour | Z = KT(Z) | convert Z in statue miles per hour to nautical miles per hour | MPH->KT |

NO | 0 | Q = R ; R = S ; ...Y = Z; Z = 0 | ||

NOW | current time | Z = hhmm | put current time in Z, hhmm | |

ORDER | set polynomial order | ORDER = Z; no effect on stack | order of polynomial defined in M[0]..M[ORDER] | |

OZ_G | ounces to grams | Z = gram(Z) | convert Z in ounces to grams | OZ->G |

OZ_L | ounces to litres | Z = litre(Z) | convert Z in ounces to litres | OZ->L |

P_R | polar to rectangular | Z = y-value, Y = x-value | convert polar to rectangular coordinates assuming that Z = magnitude, Y = argument | RECT |

PI | π | Q = R ; R = S ; ...Y = Z; Z = 3.14... | constant π | |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

POLY | define polynomial | (no effect on stack) | copy stack to memory to define the coefficients of a polynomial to level defined by ORDER, i.e., M[0] = Z, M[1] = Y.. =M[ORDER] | POLYNOMIAL |

POP | pop stack | Z = Y ; Y = X ; ... R = Q | < | |

PUSH | push stack | Q = R ; R = S ; ...Y = Z | > | |

QUAD | roots of quadratic polynomial | Z = first real root | calculate roots of polynomial defined in M[0], M[1], M[2]; second real root is displayed if it exsits | |

R_P | radians to polar | Z = magntiude, Y = arguement | convert rectangular to polar coordinates assuming that Z = y-value, Y = x-value | POLAR |

RAD | assume angles are in radians | (no effect on stack) | ||

RAGL | range and azimuth given location | Z = range, Y = azimuth | calculate great circle distance from Latitude, Longitude assuming that Y = latitude and Z = longitude of remote point | GC |

RCLLAT | get latitude | Q = R ; R = S ; ...Y = Z; Z = LATITUDE | ||

RCLLONG | get longitude | Q = R ; R = S ; ...Y = Z; Z = LONGITUDE | ||

RCLn | recall memory location | Q = R ; R = S ; ...Y = Z; Z = M[n] | recall Memory n where n = 0..9 | |

RE | earth mean radius (km) | Q = R ; R = S ; ...Y = Z; Z = Re | ||

RECIP | reciprocal | Z = 1/Z | ||

RESET | clear all and set default configuration | Z=Y=...Q = 0 ; M[0]=M[1]=...M[9] = 0 | ||

RIGHT | right justify | (no effect on stack) | right justify main display | |

SAT | show satellite map of Latitude, Longitude | (no effect on stack) | Assuming Y = Latitude, Z = Longitude, then show Google satellite map centred on this location | |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

SIN | sine function | Z = sin(Z) | ||

SOLVE | solve polynomial | Z = Z - F(Z) / F'(Z) | perform one iteration of Newton-Raphson method to solve polynomial of ORDER defined in M[0]..M[ORDER] | |

SQR | square | Z = Z * Z | ||

SQRT | square root | Z = sqrt(Z) | ||

SS | display screen saver clock | (no effect on stack) | trigger the screen save clock display immediately | CLOCK, CLK |

SSTIME | set screen save time | SSTIME = Z (no effect on stack) | set the number of seconds for the screen saver clock to start; anything less than 9 means screen saver does not start | SS-TIME |

STO-n | subtract from memory | M[n] = M[n] - Z | ||

STO*n | multiply memory | M[n] = M[n] * Z | ||

STO/n | divide into memory | M[n] = M[n] / Z | ||

STO+n | add to memory | M[n] = M[n] + Z | ||

STOLAT | store in Latitude | LATITUDE = Z | LAT | |

STOLONG | store in Longitude | LONGITUDE = Z | LONG | |

STOn | store in memory | M[n] = Z | store Z in Memory n where n=0..9 | |

SWAP | swap Z and Y | Z = Y; Y = Z | <> | |

TAN | tangent | Z = tan(Z) | ||

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

TAX1 | calculate Tax 1 | Y = Z; Z = tax1(Z) | TAX, GST, HST, VAT | |

TAX1% | set Tax 1 rate | TAX1 = Z | TAX%, GST%, HST%, VAT% | |

TAX2 | calculate Tax 2 | Y = Z; Z = tax2(Z) | PST | |

TAX2% | set Tax 2 rate | TAX2 = Z | PST% | |

TDIF | time offset | TDIF = Z (no effect on stack) | set time difference (offset) of local time in hours from Webscalp time | |

TODAY | current date | Z = yyyymmdd | put current date in Z, yyyymmdd | |

TWOPI | 2π | Q = R ; R = S ; ...Y = Z; Z = 6.28... | contant 2π | |

UPPER | upper limit for fixed point | UPPER = Z (no effect on stack) | anything larger than this value is shown in scientific notation | |

VERSION | show software version | (no effect on stack) | ||

Y^Z | power | Z = Y^Z | ||

YD3_M3 | cubic yards to cubic metres | Z = M3(Z) | convert Z in cubic yards to cubic metres | YD3->M3 |

YES | 1 | Q = R ; R = S ; ...Y = Z; Z = 1 | ||

YR | display year | Z = yyyy | only if Z contains valid date | YEAR |

Z^Y | power | Z = Z^Y | ||

ZOOM | zoom factor for maps | ZOOM = Z (no effect on stack) | set zoom factor to use when displaying maps or satellite images |

## Math functions

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |
---|---|---|---|---|

- | minus (subtraction) | Z = Y - Z | ||

! | factorial | Z = Z! | calculate factorial of Z | FACT, FACTORIAL |

* | times (multiplication) | Z = Y * Z | ||

/ | divide (division) | Z = Y / Z | ||

% | modulus (residue) | Z = Z % MODULUS | return the remainder of Z after dividing by Modulus | MOD |

+ | plus (addition) | Z = Y + Z | ||

ABS | absolute value | Z = |Z| | ||

CHS | change sign | Z = -1 * Z | ||

FACT | factorial | Z = Z! | calculate factorial of Z | !, FACTORIAL |

FRAC | fractional portion | Z = Z - int(Z) | return the fractional portion of Z | |

INT | integer portion | Z = int(Z) | return integer portion of Z | |

MOD | calculate modulus (residue) | Z = Z % MODULUS | return the remainder of Z after dividing by Modulus | % |

MODULUS | set modulus | MODULUS = Z; no effect on stack | set Modulus for subsequent MOD commands | |

RECIP | reciprocal | Z = 1/Z | ||

SQR | square | Z = Z * Z | ||

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

SQRT | square root | Z = sqrt(Z) | ||

Y^Z | power | Z = Y^Z | ||

Z^Y | power | Z = Z^Y |

## Trig and log functions

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |
---|---|---|---|---|

@DIST | prompted version of DIST | calculate distance between two points | ||

@POLAR | prompted version of POLAR | |||

@RECT | prompted version of RECT | |||

ACOS | arcosine | Z = acos(Z) | ||

ASIN | arcsine | Z = asin(Z) | ||

ATAN | arctangent | Z = atan(Z) | ||

ATAN2 | 4-quadrant arctan | Z = atan(Z/Y) | ||

COS | cosine | Z = cos(Z) | ||

DIST | distance between two points | Z = sqrt( (Z-X)*(Z-X) +(Y-W)*(Y-W)) | calculate the cartesian distance between two points pushed on the stack x1, y1, x2, y2 | DISTANCE |

EXP | natural exponential | Z = e^Z | calculate natural exponential of Z | |

EXP10 | base 10 exponential | Z = 10^Z | calculate 10 to the power Z | |

LN | natural logarithm | Z = ln(Z) | calculate the natural logarithm of Z | |

LOG | base 10 logarithm | Z = log(Z) | calculate the base-10 logarithm of Z | |

LOG2 | base 2 logarithm | Z = log2(Z) | calculate the base-2 logarithm of Z | |

LOGY | base Y logarithm | Z = logY(Z) | calculate the base-Y logarithm of Z | LOGYZ |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

LOGYZ | base Y logarithm | Z = logY(Z) | calculate the base-Y logarithm of Z | LOGY |

LOGZY | base Z logarithm | Z = logZ(Y) | calculated the base-Z logarithm of Y | |

P_R | polar to rectangular | Z = y-value, Y = x-value | convert polar to rectangular coordinates assuming that Z = magnitude, Y = argument | RECT |

R_P | radians to polar | Z = magntiude, Y = arguement | convert rectangular to polar coordinates assuming that Z = y-value, Y = x-value | POLAR |

SIN | sine function | Z = sin(Z) | ||

TAN | tangent | Z = tan(Z) |

## Polynomial functions

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |
---|---|---|---|---|

@POLY | prompted version of POLY | |||

DFZ | derivative of polynomial function | Z = F'(Z) | calculate derivative of polynomial whose coefficients are defined in M[0]..M[ORDER] | DF(Z) |

FZ | polynomial function | Z = F(Z) | calculate polynomial whose coefficients are defined in M[0]..M[ORDER] | F(Z) |

POLY | define polynomial | (no effect on stack) | copy stack to memory to define the coefficients of a polynomial to level defined by ORDER, i.e., M[0] = Z, M[1] = Y.. =M[ORDER] | POLYNOMIAL |

QUAD | roots of quadratic polynomial | Z = first real root | calculate roots of polynomial defined in M[0], M[1], M[2]; second real root is displayed if it exsits | |

SOLVE | solve polynomial | Z = Z - F(Z) / F'(Z) | perform one iteration of Newton-Raphson method to solve polynomial of ORDER defined in M[0]..M[ORDER] |

## Tax functions

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |
---|---|---|---|---|

INCLTAX1 | price including TAX1 | Z = Z + tax1(Z) | show Z including TAX1 | INCLGST, INCLHST, INCLTAX, INCLVAT |

INCLTAX2 | price including TAX2 | Z = Z + tax2(Z) | show Z including TAX2 | INCLPST |

TAX1 | calculate Tax 1 | Y = Z; Z = tax1(Z) | TAX, GST, HST, VAT | |

TAX1% | set Tax 1 rate | TAX1 = Z | TAX%, GST%, HST%, VAT% | |

TAX2 | calculate Tax 2 | Y = Z; Z = tax2(Z) | PST | |

TAX2% | set Tax 2 rate | TAX2 = Z | PST% |

## Time and date functions

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |
---|---|---|---|---|

+D | date plus day | Z = Y + Z where Y is valid date and Z is offset in days | determines new date that is Z days away from the date in Y; Z can be positive or negative | D+ |

+M | date plus month | Z = Y + X where Y is valid date and Z is offset in months | determines new date that is Z groups of 30 days away from the date in Y; Z can be positive or negative | M+ |

+W | date plus week | Z = Y + X where Y is valid date and Z is offset in weeks | determines new date that is Z groups of 7 days away from the date in Y; Z can be positive or negative | W+ |

+Y | date plus year | Z = Y + X where Y is valid date and Z is offset in years | determines new date that is Z years away from the date in Y; Z can be positive or negative | Y+ |

CAL | show calendar | (no effect on stack) | display calendar if Z is a valid date | |

DDAY | number of days between two dates | Z = Z - Y in days | calculate difference in days between two dates, assuming that Z and Y are both valid dates | DDATE |

DOW | day of week | Z =dow(Z) | Z = 1..7 (Sunday..Sat) assuming Z contains valid date | |

DOY | day of year | Z = DOY(Z) | Z = 1..366 assuming Z contains valid date | JULIAN |

JULIAN | day of year | Z = DOY(Z) | Z = 1..366 assuming Z contains valid date | DOY |

MOY | month of year | Z = moy(Z) | Z = 1..12 assuming that Z contains a valid date | MON, MONTH |

NOW | current time | Z = hhmm | put current time in Z, hhmm | |

SS | display screen saver clock | (no effect on stack) | trigger the screen save clock display immediately | CLOCK, CLK |

TDIF | time offset | TDIF = Z (no effect on stack) | set time difference (offset) of local time in hours from Webscalp time | |

TODAY | current date | Z = yyyymmdd | put current date in Z, yyyymmdd | |

YR | display year | Z = yyyy | only if Z contains valid date | YEAR |

## Geographical functions

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |
---|---|---|---|---|

@AZ | prompted version of AZ | great circle azimuth from one point to another | @AZIMUTH | |

@GC | prompted version of GC | calculate great circle distance and bearing between two points | ||

@LGAR | prompted version of LGAR | calculate location given azimuth and range | ||

@RAGL | prompted version of RAGL | calculate range and azimuth given location | @GC | |

AZ | calculate azimuth between two locations | Z = azimuth in degrees of bearing from one point to another | assumes points have been pushed onto stack long1, lat1, long2, lat2 in order | AZIMUTH |

GC | great circle range and azimuth | Z = range; Y = azimuth | calculate great circle distance from Latitude, Longitude assuming that Y = latitude and Z = longitude of remote point | RAGL |

LAT | set latitude | LATITUDE = Z | set Latitude | STOLAT |

LGAR | location given azimuth and range | Z = longitude; Y = latitude | calculate new location from Latitude,Longitude assuming Y = aziumth, Z = range | |

LONG | set longitude | LONGITUDE = Z | Set Longitude | STOLONG |

MAP | show map of Latitude, Longitude | (no effect on stack) | Assuming Y = Latitude, Z = Longitude, then show Google map centred on this location | |

RAGL | range and azimuth given location | Z = range, Y = azimuth | GC | |

SAT | show satellite map of Latitude, Longitude | (no effect on stack) | Assuming Y = Latitude, Z = Longitude, then show Google satellite map centred on this location | |

STOLAT | store in Latitude | LATITUDE = Z | LAT | |

STOLONG | store in Longitude | LONGITUDE = Z | LONG | |

ZOOM | zoom factor for maps | ZOOM = Z (no effect on stack) | set zoom factor to use when displaying maps or satellite images |

## Unit conversions

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |
---|---|---|---|---|

_DB | decibels to ratio | Z = ratio(Z) | convert decibels to ratio; inverse of DB | |

ACRE_FT2 | acres to square feet | Z = sqft(Z) | convert Z in acres to square feet | ACRE->FT2 |

ACRE_HA | acres to hectares | Z = ha(Z) | convert Z in acres to hectares | ACRE->HA |

ACRE_M2 | acres to square metres | Z = sqmetres(Z) | convert Z in acres to square metres | ACRE->M2 |

BIN | diplay binary equivalent | (no effect on stack) | show binary equivalent of Z | |

C_F | convert Celsius to farenheit | Z = Celsius(Z) | convert Z in Celsius to Farenheit | C->F |

CM_IN | centimetres to inches | Z = in(Z) | convert Z in centimetres to inches | CM->IN |

DB | ratio to decibels | Z = DB(Z) | convert ratio in Z to decibels; inverse of _DB | |

DM | show deg:min.decimal_min | (no effect on stack) | show degrees (hours), minutes, and decimal minutes equivalent of Z assuming Z is in decimal degrees (hours) | HM |

DMS | show deg:min:s | (no effect on stack) | show degrees (hours), minutes, and seconds equivalent of Z assuming Z is in decimal degrees (hours) | HMS |

F_C | Farenheit to Celsius | Z = Farenheit(Z) | convert Z in degrees Celsius to Farenheight | F->C |

FPS_MPH | ft/s to mph | Z = MPH(Z) | convert Z in feet per second to miles per hour | FPS->MPH |

FT_M | ft to m | Z = m(Z) | convert Z in feet to metres | FT->M |

FT2_ACRE | square ft to acres | Z = acre(Z) | convert Z in square feet to acres | FT2->ACRE |

FT2_HA | square feet to hectares | Z = ha(Z) | convert Z in square feet to hectares | FT2->HA |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

FT2_M2 | square feet to square metres | Z = sqmetres(Z) | convert Z in square feet to square metres | FT2->M2 |

FT3_M3 | cubic feet to cubit metres | Z = cubicmetres(Z) | convert Z in cubic feet to cubic metres | FT3->M3 |

G_OZ | grams to ounces | Z = ounces(Z) | convert Z in grams to ounces | G->OZ |

GIMP_L | Imperial gallons to litres | Z = litres(Z) | convert Z in Imperial gallons to litres | GIMP->L |

GUS_L | US gallons to litres | Z = litres(Z) | convert Z in US gallons to litres | GUS->L |

HA_ACRE | hectares to acres | Z = acre(Z) | convert Z in hectares to acres | HA->ACRE |

HA_FT2 | hectares to square feet | Z = sqft(Z) | convert Z in hectares to square feet | HA->FT2 |

HEX | display hex equivalent | (no effect on stack) | show hexadecimal equivalent of Z | HEXADECIMAL |

HM | show hours:minutes.decimal_minutes | (no effect on stack) | show hours:minutes:decimal_minutes of Z assuming that Z is in decimal hours | DM |

HMS | show hours:minutes:seconds | (no effect on stack) | show hours:minutes:seconds of Z assuming that Z is in decimal hours | DMS |

IN_CM | inches to centimetres | Z = cm(Z) | convert Z in inches to centimetres | IN->CM |

KG_LB | kg to pounds | Z = lb(Z) | convert Z in kilograms to pounds | KG->LB |

KM_MI | km to miles | Z = mi(Z) | convert Z in kilometres to miles | KG->MI |

KPH_KT | kph to knots | Z = KT(Z) | convert Z in kilometres per hour to nautical miles per hour | KG->KT |

KT_KPH | knots to kpg | Z = KPH(Z) | convert Z in nautical miles per hour to kilometres per hour | KT->KPH |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

KT_MPH | knots to mph | Z = MPH(Z) | convert Z in nautical miles per hour to miles per hour | KT->MPH |

L_GIMP | litres to Imperial gallons | Z = gallons(Z) | convert Z in litres to Imperial gallons | L->GIMP |

L_GUS | litres to US gallons | Z = US gallons(Z) | convert Z in ltres to US gallons | L->GUS |

L_OZ | litres to ounces | Z = ounces(Z) | convert Z in ltres to ounces | L->OZ |

LB_KG | pounds to kg | Z = kg(Z) | convert Z in pounds to kilograms | LB->KG |

LPHK_MPGIMP | litres per hundred km to miles per Imperial gallon | Z = MPG(Z) | convert Z in litres per 100 km to miles per Imperial gallon | LPHK->MPGIMP |

LPHK_MPGUS | litres per hundred km to miles per US gallon | Z = MPG(Z) | convert Z in litres per 100 km to miles per US gallon | LPHK->MPGUS |

M_FT | metres to feet | Z = feet(Z) | convert Z in metres to feet | M->FT |

M2_ACRE | square metres to acres | Z = acre(Z) | convert Z in square metres to acres | M2->ACRE |

M2_FT2 | square metres to square feet | Z = sq_ft(Z) | convert Z in square metres to square feet | M2->FT2 |

M3_FT3 | cubic metres to cubic feet | Z = cu_ft(Z) | convert Z in cubic metres to cubic feet | M3->FT3 |

M3_YD3 | cubic metres to cubic yards | Z = yd(Z) | covert Z in cubic metres to cubic yards | M3->YD3 |

MI_KM | miles to km | Z = km(Z) | convert Z in miles to kilometres | MI->KM |

MPGIMP_LPHK | miles per Imperial gallon to litres per hundred km | Z = LPHK(Z) | convert Z in miles per Imerial gallons to litres per 100 km | MPGIMP->LPHK |

MPGUS_LPHK | miles per US gallong to litres per hundred km | Z = LPHK(Z) | convert Z in miles per US gallon to litres per 100 km | MPGUS->LPHK |

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

MPH_FPS | miles per hour to feet per second | Z = FPS(Z) | convert Z in miles per hour to feet per second | MPH->FPS |

MPH_KT | miles per hours to nautical miles per hour | Z = KT(Z) | convert Z in statue miles per hour to nautical miles per hour | MPH->KT |

OZ_G | ounces to grams | Z = gram(Z) | convert Z in ounces to grams | OZ->G |

OZ_L | ounces to litres | Z = litre(Z) | convert Z in ounces to litres | OZ->L |

YD3_M3 | cubic yards to cubic metres | Z = M3(Z) | convert Z in cubic yards to cubic metres | YD3->M3 |

## Contstants

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |
---|---|---|---|---|

C | speed of light (m/s) | Q = R ; R = S ; ...Y = Z; Z = c | speed of light in m/s | |

G | gravitational constant (m/s2) | Q = R ; R = S ; ...Y = Z; Z = g | gravitational constant in metres per second squared | |

NO | 0 | Q = R ; R = S ; ...Y = Z; Z = 0 | ||

PI | π | Q = R ; R = S ; ...Y = Z; Z = 3.14... | constant π | |

RE | earth mean radius (km) | Q = R ; R = S ; ...Y = Z; Z = Re | ||

TWOPI | 2π | Q = R ; R = S ; ...Y = Z; Z = 6.28... | contant 2π | |

YES | 1 | Q = R ; R = S ; ...Y = Z; Z = 1 |

## Stack and memory functions

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |
---|---|---|---|---|

< | pop stack | Z = Y ; Y = X ; ... R = Q | POP | |

<> | swap Z and Y | Z = Y; Y = Z | SWAP | |

> | push stack | Q = R ; R = S ; ...Y = Z | PUSH | |

CL | clear Z | Z = 0 | ||

CLA | clear all | Z = Y =..Q = 0 ; M[0] = M[1]=. .M[9] = 0 | ||

CLM | clear memory | M[0] = M[1]= ..M[9] = 0 | ||

CLS | clear stack | Z = Y = ..Q = 0 | ||

POP | pop stack | Z = Y ; Y = X ; ... R = Q | < | |

PUSH | push stack | Q = R ; R = S ; ...Y = Z | > | |

RCLLAT | get latitude | Q = R ; R = S ; ...Y = Z; Z = LATITUDE | ||

RCLLONG | get longitude | Q = R ; R = S ; ...Y = Z; Z = LONGITUDE | ||

RCLn | recall memory location | Q = R ; R = S ; ...Y = Z; Z = M[n] | recall Memory n where n = 0..9 | |

STO-n | subtract from memory | M[n] = M[n] - Z | ||

STO*n | multiply memory | M[n] = M[n] * Z | ||

STO/n | divide into memory | M[n] = M[n] / Z | ||

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

STO+n | add to memory | M[n] = M[n] + Z | ||

STOn | store in memory | M[n] = Z | store Z in Memory n where n=0..9 | |

SWAP | swap Z and Y | Z = Y; Y = Z | <> |

## Configuration, settings, and control

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |
---|---|---|---|---|

CENTER | center the display | (no effect on stack) | show the large digits in the center of the display | CENTRE |

COMPACT | toggle compact/normal | (no effect on stack) | toggles between compact display and full display | |

DEG | assume angles are in degrees | (no effect on stack) | ||

DISPLAY | set display type | (no effect on stack) | set type of main display appearance depending on value of Z = 0,1,2,3... | |

EXIT | quit | (no effect on stack) | exit program | DONE, QUIT, STOP |

FIX | fixed point display | (no effect on stack) | display in fixed point as specified by FMT | |

FLEX | flexible decimal display | (no effect on stack) | dynamically adjust the number of decimal places shown | |

FMT | set the format for fixed point display | (no effect on stack) | show a figures before the decimal and b figures after the decimal assuming that Z = a.b |
FORMAT |

FONT | set font type | (no effect on stack) | set font for main display depending on value of Z=0,1,2,3... | |

FONTSIZE | set font size | (no effect on stack) | set font size for main display depending on value of Z in the range 1.0...10.0 | |

HELP | help | (no effect on stack) | show the help file | ? |

INPUT | set input space size | (no effect on stack) | number of lines of input space is set to value in Z for 0 < Z <= 20 | |

LEFT | left justify | (no effect on stack) | left justify main display | |

LOWER | lower limit for fixed point | LOWER = Z (no effect on stack) | anything smaller than this value shown in scientific notation | |

MIL | assume angles are in mils | (no effect on stack) | ||

CMD | DESCR | SYNOPSIS | DETAILS | ALSO |

ORDER | set polynomial order | ORDER = Z; no effect on stack | order of polynomial defined in M[0]..M[ORDER] | |

RAD | assume angles are in radians | (no effect on stack) | ||

RESET | clear all and set default configuration | Z=Y=...Q = 0 ; M[0]=M[1]=...M[9] = 0 | ||

RIGHT | right justify | (no effect on stack) | right justify main display | |

SSTIME | set screen save time | SSTIME = Z (no effect on stack) | set the number of seconds for the screen saver clock to start; anything less than 9 means screen saver does not start | SS-TIME |

UPPER | upper limit for fixed point | UPPER = Z (no effect on stack) | anything larger than this value is shown in scientific notation | |

VERSION | show software version | (no effect on stack) |

TimmiT editing, writing, procurement