Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dxcalc(1X) — Ultrix/UWS 4.5.1 RISC

Media Vault

Software Library

Restoration Projects

Artifacts Sought

dxcalc(1X)

NAME

dxcalc − DECwindows interface to the calculator

SYNOPSIS

dxcalc [flags]

FLAGS

-bd color
Specifies the color of the window’s border (color displays only). The default is specified by means of the Session Manager’s Customize Windows dialog box.

-bg color
Specifies the color of the window’s background (color displays only). The default is specified by means of the Session Manager’s Customize Windows dialog box.

-d dispname
Specifies the display screen on which 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 colorSpecifies the color of the text (color displays only). The default is specified by means of the Session Manager’s Customize Window dialog box. 

-fn fontSpecifies 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(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:

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.

ExitCloses the dxcalc window. 

Edit Menu

The Edit menu contains the following items:

UndoUndoes the last keystroke or operation. 

CopyCopies the selected text onto the clipboard. 

PastePastes 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:

numbers
The numbers on the keypad and the numbers in the number line map to themselves.

cClears both the display and the accumulator. Maps to the C key and the F1 key. 

ceClears the display. Maps to the E key and the F2 key. 

Square root
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. 

Multiplication
Multiplies the value in the accumulator by the value in the display.  Maps to the asterisk (*) and to the PF3 key.

Division
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.

Negation
Changes the value in the display from positive to negative or from negative to positive. Maps to the n key.

PercentMaps to the percent (%) keyboard key and the PF4 keypad key. 

Memory clear
Clears the contents of memory. Maps to the m key/c key sequence and to the F17 key.

Memory minus
Subtracts the value in the display from the value in memory. Maps to the m key/- key sequence and to the F18 key.

Memory plus
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.

Memory recall
Places the contents of the memory in the display. Maps to the m key/r key sequence and to the F20 key.

EqualsDisplays the result of the last operation (or series of operations).  Maps to the Enter, Do, and Return keys. 

Decimal Point
Inserts a decimal point into the number in the display. Maps to the period keys on the keyboard and keypad.

PIPlaces the value for PI in the display. Maps to the p keyboard key. 

InverseInverts the next operation.  Maps to the i and F3 keys. 

SineReturns 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. 

CosineReturns 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. 

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 gradients, according to the state of the degrees key. Maps to the t and F6 keys.

Log based 10
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.

Natural log
Returns the natural 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.

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 (^) and F10 keys.

DegreesSwitches the measurement unit for trig functions among degrees, radians, and gradients. Maps to the d and F11 keys. 

Factorial
Returns the factorial of the display (n*(n-1)*(n-2)...*1). Maps to the exclamation mark (!) and F12 keys.

1 over x
Returns the reciprocal of the display. Maps to the tilde (~) and F13 keys.

Random number
Returns a random number 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

nameSpecifies 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.

valueSpecifies 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

RELATED INFORMATION

Commands: X(1X)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026