 |
Index for Section 1 |
|
 |
Alphabetical listing for D |
|
dxcalc(1X)
NAME
dxcalc - DECwindows interface to the calculator
SYNOPSIS
dxcalc [options]
OPTIONS
-bd color
Specifies the color of the window's border (color displays only). This
overrides the system default defined in the Session Manager's Customize
Window dialog box.
-bg color
Specifies the color of the window's background (color displays only).
This overrides the system default defined in the Session Manager's
Customize Window dialog box.
-d dispname
Specifies the display screen where dxcalc displays its window. If the
display option is not specified, dxcalc uses the display screen
specified by your DISPLAY environment 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).
-display dispname
This option is the same as the -d option.
-fg color
Specifies the color of the text (color displays only). This overrides
the system default defined in the Session Manager's Customize Window
dialog box.
-fn font
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.
-geometry
Specifies 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(1X).
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:
Save Geometry
Saves the calculator's size and position, to use the next time you run
the calculator.
Restore System Settings
Restores the use of the system default values for size and position.
Exit
Closes the dxcalc window.
Edit Menu
The Edit menu contains the following items:
Undo
Undoes the last keystroke or operation.
Copy
Copies the selected text onto the clipboard.
Paste
Pastes in text from the clipboard.
Mode Menu
The Mode menu lets you select Decimal, Hexadecimal, or Octal modes. In
Decimal mode, the display and accumulator must be less than 15 digits. In
Hexadecimal and Octal mode, the accumulator and the display can not exceed
32 bits.
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 key bindings that allow you to use the keyboard,
the keypad, or function keys for all mathematical functions. Some key
bindings are available only in certain modes as stated below.
If a key binding is specified as Shift+F1, for example, hold down the shift
key and press the F1 function key. Similarly, Ctrl+F4 means hold down the
control key and press the F4 function key. Some key bindings require a
sequence of two keys, for example, M + C (first type and release the M key,
then type and release the C key).
The key bindings are:
numbers
The numbers on the keypad and the numbers on the top row of keys on the
keyboard map to themselves.
c Clears both the display and the accumulator. Maps to C (except in
Hexadecimal mode) and to Shift+F1. In Hexadecimal mode, maps to
Ctrl+C.
ce Clears the display. Maps to E (except in Hexadecimal mode) and to
Shift+F2.
+ Adds the value in the display to the value in the accumulator. Maps to
the plus symbol + on the keyboard top row and the comma , on the
keypad.
- Subtracts the value in the display from the value in the accumulator.
Maps to the hyphen on the keyboard top row and the minus sign on the
keypad.
Multiplication
Multiplies the value in the accumulator by the value in the display.
Maps to the asterisk * on the keyboard top row and to PF1.
Division
Divides the value in the accumulator by the value in the display. Maps
to the slash / on the keyboard bottom row and to PF2.
Memory clear
Clears the contents of memory. Maps to the M + C key sequence and to
Ctrl+F4.
Memory minus
Subtracts the value in the display from the value in memory. Maps to
the M + - key sequence and to Ctrl+F7.
Memory plus
Adds the value in the display to the value in memory and stores the
result. Maps to the M + + key sequence and to Ctrl+F6.
Memory recall
Places the contents of the memory in the display. Maps to the M + R key
sequence and to Ctrl+F5.
Equals
Displays the result of the last operation (or series of operations).
Maps to =, Enter, Do, and Return.
The following functions are available in Decimal mode only.
Square root
Returns the square root of the value in the display. Maps to Q and to
Shift+F9.
Negation
Changes the value in the display from positive to negative or from
negative to positive. Maps to N and to PF3.
Percent
Maps to % on the keyboard top row and to PF4.
Decimal Point
Inserts a decimal point into the number in the display. Maps to the
period keys on the keyboard and keypad.
PI Places the value of pi in the display. Maps to P.
Inverse
If the next function is sin, cos, or tan, executes the respective
inverse trig function. If the next function is log or ln (natural log),
returns 10 to the x or e to the x, where x is the value in the display.
Maps to I and to Shift+F3.
Sine
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
gradient, according to the state of the degrees key. Maps to S and to
Shift+F4.
Cosine
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
gradient, according to the state of the degrees key. Maps to O and to
Shift+F5.
Tangent
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 gradient, according to the state of the degrees key. Maps
to T and to Shift+F6.
Log based 10
Returns the log (base 10) of the value, x, in the display. (If the
inverse setting is on, returns 10 to the x.) Maps to the L + O key
sequence and to Shift+F7.
Natural log
Returns the natural log of the value, x, in the display. (If the
inverse setting is on, returns e to x.) Maps to the L + N key sequence
and to Shift+F8.
y to the x
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 circumflex ^ on the keyboard top row and to Shift+F10.
Degrees
Switches the measurement unit for trig functions among degrees,
radians, and gradient. Maps to D and to Ctrl+F8.
Factorial
If an integer n, greater than or equal to zero, is displayed, returns
the factorial of the display, n*(n-1)*(n-2)...*1. Maps to the
exclamation mark ! and to Ctrl+F9.
1 over x
Returns the reciprocal of the display. Maps to the tilde ~ on the
keyboard top row and to Ctrl+F10.
Random number
Returns a random number between 1 and the display. Maps to R and to
Ctrl+F11.
The following boolean functions are available in Hexadecimal and Octal
modes only. They are 32-bit operations.
and Performs a bitwise and boolean operation between the value in the
accumulator and the value in the display. Maps to & on the keyboard top
row and to Ctrl+F8.
or Performs a bitwise or boolean operation between the value in the
accumulator and the value in the display. Maps to the vertical bar | on
the keyboard and to Ctrl+F9.
xor Performs a bitwise xor boolean operation between the value in the
accumulator and the value in the display. Maps to the circumflex ^ on
the keyboard top row and to Ctrl+F10.
nor Performs a bitwise nor boolean operation between the value in the
accumulator and the value in the display. Maps to Ctrl+F11.
not Performs a bitwise not boolean operation on the value in the display.
Maps to the tilde ~ on the keyboard top row and to Shift+F9.
neg Performs a bitwise neg boolean operation (complementation) on the value
in the display. Maps to the ! and to Shift+F10.
The following are available in Hexadecimal mode only.
numbers A to F
The numbers A through F are entered via the same keyboard letters or as
follows. A: Shift+F3; B: Shift+F4; C: Shift+F5; D: Shift+F6; E:
Shift+F7; F: Shift+F8.
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
name
Specifies the application name or the name string that restricts the
resource assignment to that application or to a component of an
application. If this argument is not specified, the resource
assignment is globally available to all X applications.
resource
Specifies the resource.
value
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
· KeyFontFamily
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.
FILES
~/.Xdefaults
/usr/lib/X11/app-defaults/DXcalc
SEE ALSO
Commands: X(1X)