1 ICALC
Syntax: ICALC [expression] [ ; expression ]...
ICALC is an interactive full-function calculator complete with
full standard notation expressions and function library.
ICALC has basic math, logical operators, math/trig functions, date
functions, and named variables.
If one or more expressions are entered on the command line, ICALC
will display the results (one per line), then exit.
If no expressions are entered, ICALC will enter interactive mode.
A question-mark entered either on the command line or in interactive
mode will display a summary screen.
2 Access
Support: minimal to none (assistance as time and expertise allow)
Contact: e-mail to hornlo
To get started using ICALC, type
$ ICALC
2 Documentation
A summary screen may be displayed by entering
$ ICALC ?
!! The full documentation for ICALC is in
!!
!! MIL_HELP:ICALC.DOC
!!
!! (this file may be TYPE'd or PRINT'd)
!!
2 Copyrights&Authors
The following have copyright statements in one or more modules of the
distribution. Refer to the distribution for details.
Free Software Foundation
ICALC V2.2 by Rao V. Akella
The following are known to have authored, maintained, or modified one
or more modules of the distribution. See the distribution for
details.
Rao V. Akella
Free Software Foundation (GNU software)
Larry Horn
David Mathog
Jerome Lauret
Modified David Mathog for up to 10 calculation in symbol (OpenVMS)
J. Lauret 11-Mar-1999
Changed symbol calculation stack to 15 with stripped result.
Added hypot() atan2(), rand(0) and ran2(0). Those 2 last functions
have been implemented based on numerical receipe function with a
random seed feeder.
2 OpenVMS
This version of ICALC for OpenVMS adds the results of the calculations
into a symbol ICALC_OUT. This modification has been made by David
Mathog.
2 Examples
The following transcript of an ICALC session illustrates most of its features:
IC> 4 + 4.5 - (34/(8*3+-3))
6.880952381
IC> -56 + 2
-54
IC> 3 ^ 2
9
IC> -3 ^ 2
-9
IC> 9 % 4
1
IC> 9.7 % 4.2
1.3
IC> pi = 3.141592653589
pi = 3.141592654
3.141592654
IC> sin(PI) <- Note: Variable names are case-INsensitive.
7.9326579347e-13 <- This is close enough to zero, don't you think?
IC> x = (y = (z = 4.5)*2)*3 <- Note: Multiple variable assignments
z = 4.5
y = 9
x = 27
27
IC> ln(y)
2.197224577
IC> exp(ln(y))
9
IC> uninitialisedvariable <- Note: Uninitialised variables are
<- automatically initialised to zero.
IC> 1 & 2
0
IC> ~3
-4
IC> 0 | 1
1
IC> 9+4; 9-4; 9*4; 9/4
13
5
36
2.25
IC> ? /* help screen will be displayed */
IC> sin(degtorad(90))
1
IC> radtodeg(asin(1))
90
IC> sin(degtorad(90))
1
IC> radtodeg(asin(1))
90
IC> caltojul(1992, 3, 16)
149538
IC> jultocal(149538)
19920316 /* yyyymmdd format */
IC> caltojul(1582, 10,15)
1 /* October 15, 1582 is julian day 1 */
IC> jultocal(1)
15821015
IC> floor(56.789)
56
IC> int(56.789) /* trunc is an alias for int */
56
IC> floor(-56.789)
-57
IC> int(-56.789)
-56
2 Arguments
expression
the mathematical expression to be evaluated -- multiple
expressions may be entered, separated by a semicolon
?
a question mark will display a summary screen
^Z (ctrl/Z)
exits ICALC