mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
131 lines
4.3 KiB
Plaintext
131 lines
4.3 KiB
Plaintext
For more information while running calc, type help followed by one of the
|
|
following topics:
|
|
|
|
topic description
|
|
----- -----------
|
|
intro introduction to calc
|
|
overview overview of calc
|
|
help this file
|
|
|
|
assoc using associations
|
|
builtin builtin functions
|
|
command top level commands
|
|
config configuration parameters
|
|
custom information about the custom builtin interface
|
|
define how to define functions
|
|
environment how environment variables effect calc
|
|
errorcodes calc generated error codes
|
|
expression expression sequences
|
|
file using files
|
|
history command history
|
|
interrupt how interrupts are handled
|
|
list using lists
|
|
mat using matrices
|
|
obj user defined data types
|
|
operator math, relational, logic and variable access operators
|
|
statement flow control and declaration statements
|
|
types builtin data types
|
|
unexpected unexpected syntax/usage surprises for C programmers
|
|
usage how to invoke the calc command
|
|
variable variables and variable declarations
|
|
|
|
bindings input & history character bindings
|
|
custom_cal information about custom calc resource files
|
|
libcalc using the arbitrary precision routines in a C program
|
|
new_custom information about how to add new custom functions
|
|
resource standard calc resource files
|
|
script using calc shell scripts
|
|
cscript info on the calc shell scripts supplied with calc
|
|
|
|
archive where to get the latest versions of calc
|
|
bugs known bugs and mis-features
|
|
changes recent changes to calc
|
|
contrib how to contribute scripts, code or custom functions
|
|
todo list of priority action items for calc
|
|
wishlist wish list of future enhancements of calc
|
|
|
|
credit who wrote calc and who helped
|
|
copyright calc copyright and the GNU LGPL
|
|
copying details on the Calc GNU Lesser General Public License
|
|
copying-lgpl calc GNU Lesser General Public License text
|
|
|
|
full all of the above (in the above order)
|
|
|
|
You can also ask for help on a particular function name. For example,
|
|
|
|
help asinh
|
|
help round
|
|
|
|
or on a particular symbol such as:
|
|
|
|
help =
|
|
|
|
For example:
|
|
|
|
help usage
|
|
|
|
will print the calc command usage information. One can obtain calc help
|
|
without invoking any startup code by running calc as follows:
|
|
|
|
calc -q help topic
|
|
|
|
where 'topic' is one of the topics listed above.
|
|
|
|
If the -m mode disallows opening files for reading or execution of programs,
|
|
then the help facility will be disabled. See:
|
|
|
|
help usage
|
|
|
|
for details of the -m mode.
|
|
|
|
The help command is able to display installed help files for custom builtin
|
|
functions. However, if the custom name is the same as a standard help
|
|
file, the standard help file will be displayed instead. The custom help
|
|
builtin should be used to directly access the custom help file.
|
|
|
|
For example, the custom help builtin has the same name as the standard
|
|
help file. That is:
|
|
|
|
help help
|
|
|
|
will print this file only. However the custom help builtin will print
|
|
only the custom builtin help file:
|
|
|
|
custom("help", "help");
|
|
|
|
will by-pass a standard help file and look for the custom version directly.
|
|
|
|
As a hack, the following:
|
|
|
|
help custhelp/anything
|
|
|
|
as the same effect as:
|
|
|
|
custom("help", "anything");
|
|
|
|
## Copyright (C) 1999 Landon Curt Noll
|
|
##
|
|
## Calc is open software; you can redistribute it and/or modify it under
|
|
## the terms of the version 2.1 of the GNU Lesser General Public License
|
|
## as published by the Free Software Foundation.
|
|
##
|
|
## Calc is distributed in the hope that it will be useful, but WITHOUT
|
|
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
|
## Public License for more details.
|
|
##
|
|
## A copy of version 2.1 of the GNU Lesser General Public License is
|
|
## distributed with calc under the filename COPYING-LGPL. You should have
|
|
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
|
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
|
##
|
|
## @(#) $Revision: 29.3 $
|
|
## @(#) $Id: help,v 29.3 2000/06/07 14:02:33 chongo Exp $
|
|
## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/help,v $
|
|
##
|
|
## Under source code control: 1991/07/21 04:37:20
|
|
## File existed as early as: 1991
|
|
##
|
|
## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
|
## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|