dxcalc(1X)dxcalc(1X)NAMEdxcalc - DECwindows interface to the calculator
SYNOPSISdxcalc [flags]
FLAGS
Specifies the color of the window's border (color displays only). The
default is specified by means of the Session Manager's Customize Win‐
dows dialog box. Specifies the color of the window's background (color
displays only). The default is specified by means of the Session Man‐
ager's Customize Windows dialog box. Specifies the display screen on
which dxcalc displays its window. If the display option is not speci‐
fied, dxcalc uses the display screen specified by your DISPLAY environ‐
ment variable. The display option has the format hostname:number.
Using two colons (::) instead of one colon (:) indicates that DECnet is
to be used for transport. The default is :0. For more information,
see X(1X). This option is the same as the -d option. Specifies the
color of the text (color displays only). The default is specified by
means of the Session Manager's Customize Window dialog box. Specifies
the font for calculator menus. (Key fonts are automatically scaled to
match the size of the calculator.) The default font is menu12. A font
value specified in the .Xdefaults file overrides this option. Speci‐
fies the width, length, and location of the dxcalc window. If the
geometry option is not specified, dxcalc uses default values. The
geometry option has the format [widthxlength][{+-}x{+-}y]. For more
information about the screen coordinate system, see X(X).
DESCRIPTION
The dxcalc command displays a 27-function calculator with one memory
location that is always visible. The dxcalc calculator has a maximum
display of 15 digits.
To press a button displayed in the dxcalc window, click on it with MB1
(the left mouse button, unless you have redefined it). In addition,
you can enter numbers by typing them in from the keyboard. To perform
a function from the keyboard, check the key binding listed in the
application's on-line help or in this reference page.
Menus
The dxcalc application contains the following menus: File Edit Mode
Help Pop-up
File Menu
The File menu contains the following items: Saves the calculator's size
and position, to use the next time you run the calculator. Restores
the use of the system default values for size and position. Closes the
dxcalc window.
Edit Menu
The Edit menu contains the following items: Undoes the last keystroke
or operation. Copies the selected text onto the clipboard. Pastes in
text from the clipboard.
Help Menu
The Help menu displays information about dxcalc.
Pop-up Menu
To display the dxcalc pop-up menu, place the pointer at any position in
the dxcalc window and click MB3. This menu contains the following
items: Undo Copy Paste Exit
Key Bindings
The dxcalc application has a specific set of key bindings that allow
you to use the keypad for all mathematical functions. The built-in key
bindings are as follows: The numbers on the keypad and the numbers in
the number line map to themselves. Clears both the display and the
accumulator. Maps to the C key and the F1 key. Clears the display.
Maps to the E key and the F2 key. Returns the square root of the value
in the display. Maps to the Q keyboard key and the PF2 numeric keypad
key. Adds the value in the display to the value in the accumulator.
Maps to the plus symbol (+) in the number line and the comma key (,) in
the keypad. Subtracts the value in the display from the value in the
accumulator. Maps to the minus sign (-) in the number line and the
minus sign in the keypad. Multiplies the value in the accumulator by
the value in the display. Maps to the asterisk (*) and to the PF3 key.
Divides the value in the accumulator by the value in the display. Maps
to the slash (/) key on the keyboard and the PF1 key in the keypad.
Changes the value in the display from positive to negative or from neg‐
ative to positive. Maps to the n key. Maps to the percent (%) keyboard
key and the PF4 keypad key. Clears the contents of memory. Maps to the
m key/c key sequence and to the F17 key. Subtracts the value in the
display from the value in memory. Maps to the m key/- key sequence and
to the F18 key. Adds the value in the display to the value in memory
and stores the result. Maps to the m key/plus (+) key sequence and to
the F19 keypad key. Places the contents of the memory in the display.
Maps to the m key/r key sequence and to the F20 key. Displays the
result of the last operation (or series of operations). Maps to the
Enter, Do, and Return keys. Inserts a decimal point into the number in
the display. Maps to the period keys on the keyboard and keypad.
Places the value for PI in the display. Maps to the p keyboard key.
Inverts the next operation. Maps to the i and F3 keys. Returns the
sine of the value in the display. (If the inverse setting is on,
returns the arcsine.) The angle is in degrees, radians, or gradients,
according to the state of the degrees key. Maps to the s and F4 keys.
Returns the cosine of the value in the display. (If the inverse setting
is on, returns the arccosine.) The angle is in degrees, radians, or
gradients, according to the state of the degrees key. Maps to the o
and F5 keys. Returns the tangent of the value in the display. (If the
inverse setting is on, returns the arctangent.) The angle is in
degrees, radians, or gradients, according to the state of the degrees
key. Maps to the t and F6 keys. Returns the log (base 10) of the
value in the display. (If the inverse setting is on, returns 10 to x.)
Maps to the l key/o key sequence and to the F7 key. Returns the natu‐
ral log of the display. (If the inverse setting is on, returns e to x.)
Maps to the l key/n key sequence and to the F8 key. Returns the value
in the accumulator raised to the power of the value in the display. (If
the inverse setting is on, returns y to the minus x.) Maps to the cir‐
cumflex (^) and F10 keys. Switches the measurement unit for trig func‐
tions among degrees, radians, and gradients. Maps to the d and F11
keys. Returns the factorial of the display (n*(n-1)*(n-2)...*1). Maps
to the exclamation mark (!) and F12 keys. Returns the reciprocal of
the display. Maps to the tilde (~) and F13 keys. Returns a random num‐
ber between 1 and the display. Maps to the r and F14 keys.
X Defaults
The dxcalc application uses the values in the .Xdefaults file when you
logged in and uses the appropriate resource specification values to
customize the appearance of the dxcalc window. The format for a
resource specification in the .Xdefaults file is:
[name*]resource: value
Specifies the application name or the name string that restricts the
resource assignment to that application or to a component of an appli‐
cation. If this argument is not specified, the resource assignment is
globally available to all X applications. Specifies the resource.
Specifies the value that is to be assigned to the resource. Because
each toolkit-based application can consist of a combination of widgets
(for example, push buttons and a scroll bar), you can form the name
string by adding widget class and name identifiers to the string. For
further information about adding class and name identifiers, see X(1X).
For dxcalc, the available class identifiers are: Calc MenuBar
For dxcalc, the available name identifiers are: sqrtFontFamily KeyFont‐
Family
The general resources listed in X(1X) apply to dxcalc.
The fonts used by dxcalc are specified by an asterisk (*). This is
done so that a font family is chosen instead of a particular font. The
asterisk (*) is a wildcard character that matches all font sizes.
FILESRELATED INFORMATION
Commands: X(1X)dxcalc(1X)