diff options
author | wiz <wiz> | 2001-02-08 10:25:54 +0000 |
---|---|---|
committer | wiz <wiz> | 2001-02-08 10:25:54 +0000 |
commit | aa90192019cbe9418ec7cb40dd2819d8f0d88683 (patch) | |
tree | 025407aff57c0baa50447da6a8ec63374e01f130 /math/capc-calc/pkg | |
parent | 1d1087da619903250a4d785498e9c170c054e9a8 (diff) | |
download | pkgsrc-aa90192019cbe9418ec7cb40dd2819d8f0d88683.tar.gz |
Initial import of calc (renamed to capc-calc because of existing calc
package): C arbitrary precision calculator
Requested by Chuck Cranor.
Diffstat (limited to 'math/capc-calc/pkg')
-rw-r--r-- | math/capc-calc/pkg/COMMENT | 1 | ||||
-rw-r--r-- | math/capc-calc/pkg/DESCR | 18 | ||||
-rw-r--r-- | math/capc-calc/pkg/PLIST | 457 |
3 files changed, 476 insertions, 0 deletions
diff --git a/math/capc-calc/pkg/COMMENT b/math/capc-calc/pkg/COMMENT new file mode 100644 index 00000000000..a2e297246e5 --- /dev/null +++ b/math/capc-calc/pkg/COMMENT @@ -0,0 +1 @@ +C arbitrary precision calculator diff --git a/math/capc-calc/pkg/DESCR b/math/capc-calc/pkg/DESCR new file mode 100644 index 00000000000..26cc7fead6c --- /dev/null +++ b/math/capc-calc/pkg/DESCR @@ -0,0 +1,18 @@ +Calc is an interactive calculator which provides for easy large +numeric caluclations, but which also can be easily programmed for +difficult or long calculations. It can accept a command line +argument, in which case it executes that single command and exits. +Otherwise it enters interactive mode. In this mode, it accepts +commands one at a time, processes them, and displays the answers. +In the simplest case, commands are simply expressions which are +evaluated. For example, he following line can be input: +> 3 * (4 + 1) +and the calculator will print 15. + +Commands are statements in a C-like language, where each input line +is treated as the body of a procedure. Thus he copmmand line can +contain variable declarations, expressions, labels, conditional +tests, and loops. Assignments to any variable name will automatically +define that name as a global variable. + +For more information on the program, run 'calc help help'. diff --git a/math/capc-calc/pkg/PLIST b/math/capc-calc/pkg/PLIST new file mode 100644 index 00000000000..fdf60f116ec --- /dev/null +++ b/math/capc-calc/pkg/PLIST @@ -0,0 +1,457 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/02/08 10:25:56 wiz Exp $ +bin/calc +bin/cscript/mersenne +bin/cscript/piforever +bin/cscript/plus +bin/cscript/simple +bin/cscript/square +include/calc/align32.h +include/calc/alloc.h +include/calc/args.h +include/calc/blkcpy.h +include/calc/block.h +include/calc/byteswap.h +include/calc/calc.h +include/calc/calcerr.h +include/calc/cmath.h +include/calc/conf.h +include/calc/config.h +include/calc/custom.h +include/calc/endian_calc.h +include/calc/file.h +include/calc/fposval.h +include/calc/func.h +include/calc/hash.h +include/calc/have_const.h +include/calc/have_fpos.h +include/calc/have_fpos_pos.h +include/calc/have_getpgid.h +include/calc/have_getprid.h +include/calc/have_getsid.h +include/calc/have_gettime.h +include/calc/have_malloc.h +include/calc/have_memmv.h +include/calc/have_newstr.h +include/calc/have_offscl.h +include/calc/have_posscl.h +include/calc/have_rusage.h +include/calc/have_stdlib.h +include/calc/have_strdup.h +include/calc/have_string.h +include/calc/have_times.h +include/calc/have_uid_t.h +include/calc/have_unistd.h +include/calc/have_urandom.h +include/calc/have_ustat.h +include/calc/hist.h +include/calc/jump.h +include/calc/label.h +include/calc/lib_util.h +include/calc/longbits.h +include/calc/longlong.h +include/calc/math_error.h +include/calc/md5.h +include/calc/nametype.h +include/calc/opcodes.h +include/calc/prime.h +include/calc/qmath.h +include/calc/shs.h +include/calc/shs1.h +include/calc/string.h +include/calc/symbol.h +include/calc/terminal.h +include/calc/token.h +include/calc/value.h +include/calc/zmath.h +include/calc/zrand.h +include/calc/zrandom.h +lib/calc/README +lib/calc/beer.cal +lib/calc/bernoulli.cal +lib/calc/bigprime.cal +lib/calc/bindings +lib/calc/chrem.cal +lib/calc/custom/argv.cal +lib/calc/custom/halflen.cal +lib/calc/custom/libcustcalc.a +lib/calc/custom/pzasusb8.cal +lib/calc/deg.cal +lib/calc/ellip.cal +lib/calc/hello.cal +lib/calc/help/COPYING +lib/calc/help/COPYING-LGPL +lib/calc/help/abs +lib/calc/help/access +lib/calc/help/acos +lib/calc/help/acosh +lib/calc/help/acot +lib/calc/help/acoth +lib/calc/help/acsc +lib/calc/help/acsch +lib/calc/help/address +lib/calc/help/agd +lib/calc/help/append +lib/calc/help/appr +lib/calc/help/archive +lib/calc/help/arg +lib/calc/help/argv +lib/calc/help/arrow +lib/calc/help/asec +lib/calc/help/asech +lib/calc/help/asin +lib/calc/help/asinh +lib/calc/help/assign +lib/calc/help/assoc +lib/calc/help/atan +lib/calc/help/atan2 +lib/calc/help/atanh +lib/calc/help/avg +lib/calc/help/base +lib/calc/help/bernoulli +lib/calc/help/binding +lib/calc/help/bindings +lib/calc/help/bit +lib/calc/help/blk +lib/calc/help/blkcpy +lib/calc/help/blkfree +lib/calc/help/blocks +lib/calc/help/bround +lib/calc/help/btrunc +lib/calc/help/bug +lib/calc/help/bugs +lib/calc/help/builtin +lib/calc/help/calc_tty +lib/calc/help/calclevel +lib/calc/help/catalan +lib/calc/help/ceil +lib/calc/help/cfappr +lib/calc/help/cfsim +lib/calc/help/change +lib/calc/help/changes +lib/calc/help/char +lib/calc/help/cmdbuf +lib/calc/help/cmp +lib/calc/help/comb +lib/calc/help/command +lib/calc/help/config +lib/calc/help/conj +lib/calc/help/contrib +lib/calc/help/cos +lib/calc/help/cosh +lib/calc/help/cot +lib/calc/help/coth +lib/calc/help/count +lib/calc/help/cp +lib/calc/help/credit +lib/calc/help/csc +lib/calc/help/csch +lib/calc/help/cscript +lib/calc/help/ctime +lib/calc/help/custhelp/argv +lib/calc/help/custhelp/devnull +lib/calc/help/custhelp/help +lib/calc/help/custhelp/pzasusb8 +lib/calc/help/custhelp/sysinfo +lib/calc/help/custom +lib/calc/help/custom_cal +lib/calc/help/define +lib/calc/help/delete +lib/calc/help/den +lib/calc/help/dereference +lib/calc/help/det +lib/calc/help/digit +lib/calc/help/digits +lib/calc/help/dp +lib/calc/help/environment +lib/calc/help/epsilon +lib/calc/help/errcount +lib/calc/help/errmax +lib/calc/help/errno +lib/calc/help/error +lib/calc/help/errorcode +lib/calc/help/errorcodes +lib/calc/help/euler +lib/calc/help/eval +lib/calc/help/exp +lib/calc/help/expression +lib/calc/help/fact +lib/calc/help/factor +lib/calc/help/fclose +lib/calc/help/fcnt +lib/calc/help/feof +lib/calc/help/ferror +lib/calc/help/fflush +lib/calc/help/fgetc +lib/calc/help/fgetfield +lib/calc/help/fgetline +lib/calc/help/fgets +lib/calc/help/fgetstr +lib/calc/help/fib +lib/calc/help/file +lib/calc/help/files +lib/calc/help/floor +lib/calc/help/fopen +lib/calc/help/forall +lib/calc/help/fprintf +lib/calc/help/fputc +lib/calc/help/fputs +lib/calc/help/fputstr +lib/calc/help/frac +lib/calc/help/free +lib/calc/help/freebernoulli +lib/calc/help/freeeuler +lib/calc/help/freeglobals +lib/calc/help/freeredc +lib/calc/help/freestatics +lib/calc/help/frem +lib/calc/help/freopen +lib/calc/help/fscan +lib/calc/help/fscanf +lib/calc/help/fseek +lib/calc/help/fsize +lib/calc/help/ftell +lib/calc/help/full +lib/calc/help/gcd +lib/calc/help/gcdrem +lib/calc/help/gd +lib/calc/help/getenv +lib/calc/help/hash +lib/calc/help/head +lib/calc/help/help +lib/calc/help/highbit +lib/calc/help/history +lib/calc/help/hmean +lib/calc/help/hnrmod +lib/calc/help/hypot +lib/calc/help/ilog +lib/calc/help/ilog10 +lib/calc/help/ilog2 +lib/calc/help/im +lib/calc/help/indices +lib/calc/help/inputlevel +lib/calc/help/insert +lib/calc/help/int +lib/calc/help/interrupt +lib/calc/help/intro +lib/calc/help/inverse +lib/calc/help/iroot +lib/calc/help/isassoc +lib/calc/help/isatty +lib/calc/help/isblk +lib/calc/help/isconfig +lib/calc/help/isdefined +lib/calc/help/iserror +lib/calc/help/iseven +lib/calc/help/isfile +lib/calc/help/ishash +lib/calc/help/isident +lib/calc/help/isint +lib/calc/help/islist +lib/calc/help/ismat +lib/calc/help/ismult +lib/calc/help/isnull +lib/calc/help/isnum +lib/calc/help/isobj +lib/calc/help/isobjtype +lib/calc/help/isodd +lib/calc/help/isprime +lib/calc/help/isptr +lib/calc/help/isqrt +lib/calc/help/isrand +lib/calc/help/israndom +lib/calc/help/isreal +lib/calc/help/isrel +lib/calc/help/issimple +lib/calc/help/issq +lib/calc/help/isstr +lib/calc/help/istype +lib/calc/help/jacobi +lib/calc/help/join +lib/calc/help/lcm +lib/calc/help/lcmfact +lib/calc/help/lfactor +lib/calc/help/libcalc +lib/calc/help/list +lib/calc/help/ln +lib/calc/help/lowbit +lib/calc/help/ltol +lib/calc/help/makelist +lib/calc/help/mat +lib/calc/help/matdim +lib/calc/help/matfill +lib/calc/help/matmax +lib/calc/help/matmin +lib/calc/help/matsum +lib/calc/help/mattrace +lib/calc/help/mattrans +lib/calc/help/max +lib/calc/help/md5 +lib/calc/help/memsize +lib/calc/help/meq +lib/calc/help/min +lib/calc/help/minv +lib/calc/help/mmin +lib/calc/help/mne +lib/calc/help/mod +lib/calc/help/modify +lib/calc/help/name +lib/calc/help/near +lib/calc/help/new_custom +lib/calc/help/newerror +lib/calc/help/nextcand +lib/calc/help/nextprime +lib/calc/help/norm +lib/calc/help/null +lib/calc/help/num +lib/calc/help/obj +lib/calc/help/oldvalue +lib/calc/help/operator +lib/calc/help/ord +lib/calc/help/overview +lib/calc/help/param +lib/calc/help/perm +lib/calc/help/pfact +lib/calc/help/pi +lib/calc/help/pix +lib/calc/help/places +lib/calc/help/pmod +lib/calc/help/polar +lib/calc/help/poly +lib/calc/help/pop +lib/calc/help/popcnt +lib/calc/help/power +lib/calc/help/prevcand +lib/calc/help/prevprime +lib/calc/help/printf +lib/calc/help/prompt +lib/calc/help/protect +lib/calc/help/ptest +lib/calc/help/push +lib/calc/help/putenv +lib/calc/help/quo +lib/calc/help/quomod +lib/calc/help/rand +lib/calc/help/randbit +lib/calc/help/random +lib/calc/help/randombit +lib/calc/help/randperm +lib/calc/help/rcin +lib/calc/help/rcmul +lib/calc/help/rcout +lib/calc/help/rcpow +lib/calc/help/rcsq +lib/calc/help/re +lib/calc/help/remove +lib/calc/help/resource +lib/calc/help/reverse +lib/calc/help/rewind +lib/calc/help/rm +lib/calc/help/root +lib/calc/help/round +lib/calc/help/rsearch +lib/calc/help/runtime +lib/calc/help/saveval +lib/calc/help/scale +lib/calc/help/scan +lib/calc/help/scanf +lib/calc/help/script +lib/calc/help/search +lib/calc/help/sec +lib/calc/help/sech +lib/calc/help/seed +lib/calc/help/segment +lib/calc/help/select +lib/calc/help/sgn +lib/calc/help/sha +lib/calc/help/sha1 +lib/calc/help/sin +lib/calc/help/sinh +lib/calc/help/size +lib/calc/help/sizeof +lib/calc/help/sleep +lib/calc/help/sort +lib/calc/help/sqrt +lib/calc/help/srand +lib/calc/help/srandom +lib/calc/help/ssq +lib/calc/help/statement +lib/calc/help/str +lib/calc/help/strcat +lib/calc/help/strerror +lib/calc/help/strlen +lib/calc/help/strpos +lib/calc/help/strprintf +lib/calc/help/strscan +lib/calc/help/strscanf +lib/calc/help/substr +lib/calc/help/sum +lib/calc/help/swap +lib/calc/help/system +lib/calc/help/tail +lib/calc/help/tan +lib/calc/help/tanh +lib/calc/help/test +lib/calc/help/time +lib/calc/help/todo +lib/calc/help/trunc +lib/calc/help/type +lib/calc/help/types +lib/calc/help/unexpected +lib/calc/help/usage +lib/calc/help/variable +lib/calc/help/wishlist +lib/calc/help/xor +lib/calc/libcalc.a +lib/calc/lucas.cal +lib/calc/lucas_chk.cal +lib/calc/lucas_tbl.cal +lib/calc/mersenne.cal +lib/calc/mfactor.cal +lib/calc/mod.cal +lib/calc/natnumset.cal +lib/calc/pell.cal +lib/calc/pi.cal +lib/calc/pix.cal +lib/calc/pollard.cal +lib/calc/poly.cal +lib/calc/prompt.cal +lib/calc/psqrt.cal +lib/calc/qtime.cal +lib/calc/quat.cal +lib/calc/randbitrun.cal +lib/calc/randmprime.cal +lib/calc/randombitrun.cal +lib/calc/randomrun.cal +lib/calc/randrun.cal +lib/calc/regress.cal +lib/calc/seedrandom.cal +lib/calc/solve.cal +lib/calc/sumsq.cal +lib/calc/surd.cal +lib/calc/test1700.cal +lib/calc/test2300.cal +lib/calc/test2600.cal +lib/calc/test2700.cal +lib/calc/test3100.cal +lib/calc/test3300.cal +lib/calc/test3400.cal +lib/calc/test3500.cal +lib/calc/test4000.cal +lib/calc/test4100.cal +lib/calc/test4600.cal +lib/calc/test5100.cal +lib/calc/test5200.cal +lib/calc/test8400.cal +lib/calc/test8500.cal +lib/calc/test8600.cal +lib/calc/unitfrac.cal +lib/calc/varargs.cal +lib/calc/xx_print.cal +man/cat1/calc.0 +man/man1/calc.1 +@dirrm lib/calc/help/custhelp +@dirrm lib/calc/help +@dirrm lib/calc/custom +@dirrm lib/calc +@dirrm include/calc +@dirrm bin/cscript |