⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 Calc Software Package for Number Calc
💻
📖 第 1 页 / 共 2 页
字号:
    quat_div(a, b)    quat_inv(a)    quat_scale(a, b)    quat_shift(a, b)    Calculate using quaternions of the form: a + bi + cj + dk.	In these    functions, quaternions are manipulated in the form: s + v, where    s is a scalar and v is a vector of size 3.randbitrun.cal    randbitrun([run_cnt])    Using randbit(1) to generate a sequence of random bits, determine if    the number and length of identical bits runs match what is expected.    By default, run_cnt is to test the next 65536 random values.    This tests the a55 generator.randmprime.cal    randmprime(bits, seed [,dbg])    Find a prime of the form h*2^n-1 >= 2^bits for some given x.  The initial    search points for 'h' and 'n' are selected by a cryptographic pseudo-random    number generator.  The optional argument, dbg, if set to 1, 2 or 3    turn on various debugging print statements.randombitrun.cal    randombitrun([run_cnt])    Using randombit(1) to generate a sequence of random bits, determine if    the number and length of identical bits runs match what is expected.    By default, run_cnt is to test the next 65536 random values.    This tests the Blum-Blum-Shub generator.randomrun.cal    randomrun([run_cnt])    Perform the "G. Run test" (pp. 65-68) as found in Knuth's "Art of    Computer Programming - 2nd edition", Volume 2, Section 3.3.2 on    the builtin rand() function.  This function will generate run_cnt    64 bit values.  By default, run_cnt is to test the next 65536    random values.    This tests the Blum-Blum-Shub generator.randrun.cal    randrun([run_cnt])    Perform the "G. Run test" (pp. 65-68) as found in Knuth's "Art of    Computer Programming - 2nd edition", Volume 2, Section 3.3.2 on    the builtin rand() function.  This function will generate run_cnt    64 bit values.  By default, run_cnt is to test the next 65536    random values.    This tests the a55 generator.repeat.cal    repeat(digit_set, repeat_count)    Return the value of the digit_set repeated repeat_count times.    Both digit_set and repeat_count must be integers > 0.    For example repeat(423,5) returns the value 423423423423423,    which is the digit_set 423 repeated 5 times.regress.cal    Test the correct execution of the calculator by reading this resource file.    Errors are reported with '****' messages, or worse. :-)screen.cal    up    CUU	/* same as up */    down = CUD    CUD	/* same as down */    forward    CUF	/* same as forward */    back = CUB    CUB	/* same as back */    save    SCP	/* same as save */    restore    RCP	/* same as restore */    cls    home    eraseline    off    bold    faint    italic    blink    rapidblink    reverse    concealed    /* Lowercase indicates foreground, uppercase background */    black    red    green    yellow    blue    magenta    cyan    white    Black    Red    Green    Yellow    Blue    Magenta    Cyan    White    Define ANSI control sequences providing (i.e., cursor movement, changing    foreground or background color, etc.) for VT100 terminals and terminal    window emulators (i.e., xterm, Apple OS/X Terminal, etc.) that support them.    For example:	read screen	print green:"This is green. ":red:"This is red.":blackseedrandom.cal    seedrandom(seed1, seed2, bitsize [,trials])    Given:	seed1 - a large random value (at least 10^20 and perhaps < 10^93)	seed2 - a large random value (at least 10^20 and perhaps < 10^93)	size - min Blum modulus as a power of 2 (at least 100, perhaps > 1024)	trials - number of ptest() trials (default 25) (optional arg)    Returns:	the previous random state    Seed the cryptographically strong Blum generator.  This functions allows    one to use the raw srandom() without the burden of finding appropriate    Blum primes for the modulus.set8700.cal    set8700_getA1() defined    set8700_getA2() defined    set8700_getvar() defined    set8700_f(set8700_x) defined    set8700_g(set8700_x) defined    Declare globals and define functions needed by dotest() (see    dotest.cal) to evaluate set8700.line a line at a time.set8700.line    A line-by-line evaluation file for dotest() (see dotest.cal).    The set8700.cal file (and dotest.cal) should be read first.solve.cal    solve(low, high, epsilon)    Solve the equation f(x) = 0 to within the desired error value for x.    The function 'f' must be defined outside of this routine, and the low    and high values are guesses which must produce values with opposite signs.sumsq.cal    ss(p)    Determine the unique two positive integers whose squares sum to the    specified prime.  This is always possible for all primes of the form    4N+1, and always impossible for primes of the form 4N-1.sumtimes.cal    timematsum(N)    timelistsum(N)    timematsort(N)    timelistsort(N)    timematreverse(N)    timelistreverse(N)    timematssq(N)    timelistssq(N)    timehmean(N,M)    doalltimes(N)    Give the user CPU time for various ways of evaluating sums, sums of    squares, etc, for large lists and matrices.  N is the size of    the list or matrix to use.  The doalltimes() function will run    all fo the sumtimes tests.  For example:    	doalltimes(1e6);surd.cal    surd(a, b)    surd_print(a)    surd_conj(a)    surd_norm(a)    surd_value(a, xepsilon)    surd_add(a, b)    surd_sub(a, b)    surd_inc(a)    surd_dec(a)    surd_neg(a)    surd_mul(a, b)    surd_square(a)    surd_scale(a, b)    surd_shift(a, b)    surd_div(a, b)    surd_inv(a)    surd_sgn(a)    surd_cmp(a, b)    surd_rel(a, b)    Calculate using quadratic surds of the form: a + b * sqrt(D).test1700.cal    value    This resource files is used by regress.cal to test the read and use keywords.test2600.cal    global defaultverbose    global err    testismult(str, n, verbose)    testsqrt(str, n, eps, verbose)    testexp(str, n, eps, verbose)    testln(str, n, eps, verbose)    testpower(str, n, b, eps, verbose)    testgcd(str, n, verbose)    cpow(x, n, eps)    cexp(x, eps)    cln(x, eps)    mkreal()    mkcomplex()    mkbigreal()    mksmallreal()    testappr(str, n, verbose)    checkappr(x, y, z, verbose)    checkresult(x, y, z, a)    test2600(verbose, tnum)    This resource files is used by regress.cal to test some of builtin functions    in terms of accuracy and roundoff.test2700.cal    global defaultverbose    mknonnegreal()    mkposreal()    mkreal_2700()    mknonzeroreal()    mkposfrac()    mkfrac()    mksquarereal()    mknonsquarereal()    mkcomplex_2700()    testcsqrt(str, n, verbose)    checksqrt(x, y, z, v)    checkavrem(A, B, X, eps)    checkrounding(s, n, t, u, z)    iscomsq(x)    test2700(verbose, tnum)    This resource files is used by regress.cal to test sqrt() for real and    complex values.test3100.cal    obj res    global md    res_test(a)    res_sub(a, b)    res_mul(a, b)    res_neg(a)    res_inv(a)    res(x)    This resource file is used by regress.cal to test determinants of a matrixtest3300.cal    global defaultverbose    global err    testi(str, n, N, verbose)    testr(str, n, N, verbose)    test3300(verbose, tnum)    This resource file is used by regress.cal to provide for more determinant    tests.test3400.cal    global defaultverbose    global err    test1(str, n, eps, verbose)    test2(str, n, eps, verbose)    test3(str, n, eps, verbose)    test4(str, n, eps, verbose)    test5(str, n, eps, verbose)    test6(str, n, eps, verbose)    test3400(verbose, tnum)    This resource file is used by regress.cal to test trig functions.    containing objects.test3500.cal    global defaultverbose    global err    testfrem(x, y, verbose)    testgcdrem(x, y, verbose)    testf(str, n, verbose)    testg(str, n, verbose)    testh(str, n, N, verbose)    test3500(verbose, n, N)    This resource file is used by regress.cal to test the functions frem,    fcnt, gcdrem.test4000.cal    global defaultverbose    global err    global BASEB    global BASE    global COUNT    global SKIP    global RESIDUE    global MODULUS    global K1    global H1    global K2    global H2    global K3    global H3    plen(N) defined    rlen(N) defined    clen(N) defined    ptimes(str, N, n, count, skip, verbose) defined    ctimes(str, N, n, count, skip, verbose) defined    crtimes(str, a, b, n, count, skip, verbose) defined    ntimes(str, N, n, count, skip, residue, mod, verbose) defined    testnextcand(str, N, n, cnt, skip, res, mod, verbose) defined    testnext1(x, y, count, skip, residue, modulus) defined    testprevcand(str, N, n, cnt, skip, res, mod, verbose) defined    testprev1(x, y, count, skip, residue, modulus) defined    test4000(verbose, tnum) defined    This resource file is used by regress.cal to test ptest, nextcand and    prevcand builtins.test4100.cal    global defaultverbose    global err    global K1    global K2    global BASEB    global BASE    rlen_4100(N) defined    olen(N) defined    test1(x, y, m, k, z1, z2) defined    testall(str, n, N, M, verbose) defined    times(str, N, n, verbose) defined    powtimes(str, N1, N2, n, verbose) defined    inittimes(str, N, n, verbose) defined    test4100(verbose, tnum) defined    This resource file is used by regress.cal to test REDC operations.test4600.cal    stest(str [, verbose]) defined    ttest([m, [n [,verbose]]]) defined    sprint(x) defined    findline(f,s) defined    findlineold(f,s) defined    test4600(verbose, tnum) defined    This resource file is used by regress.cal to test searching in files.test5100.cal    global a5100    global b5100    test5100(x) defined    This resource file is used by regress.cal to test the new code generator    declaration scope and order.test5200.cal    global a5200    static a5200    f5200(x) defined    g5200(x) defined    h5200(x) defined    This resource file is used by regress.cal to test the fix of a    global/static bug.test8400.cal    test8400() defined    This resource file is used by regress.cal to check for quit-based    memory leaks.test8500.cal    global err_8500    global L_8500    global ver_8500    global old_seed_8500    global cfg_8500    onetest_8500(a,b,rnd) defined    divmod_8500(N, M1, M2, testnum) defined    This resource file is used by regress.cal to the // and % operators.test8600.cal    global min_8600    global max_8600    global hash_8600    global hmean_8600    This resource file is used by regress.cal to test a change of    allowing up to 1024 args to be passed to a builtin function.unitfrac.cal    unitfrac(x)    Represent a fraction as sum of distinct unit fractions.varargs.cal    sc(a, b, ...)    Example program to use 'varargs'.  Program to sum the cubes of all    the specified numbers.xx_print.cal    is_octet(a) defined    list_print(a) defined    mat_print (a) defined    octet_print(a) defined    blk_print(a) defined    nblk_print (a) defined    strchar(a) defined    file_print(a) defined    error_print(a) defined    Demo for the xx_print object routines.## Copyright (C) 2000  David I. Bell and Landon Curt Noll#### Primary author: 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.16 $## @(#) $Id: README,v 29.16 2006/12/16 11:18:46 chongo Exp $## @(#) $Source: /usr/local/src/cmd/calc/cal/RCS/README,v $#### Under source code control:	1990/02/15 01:50:32## File existed as early as:	before 1990#### chongo <was here> /\oo/\	http://www.isthe.com/chongo/## Share and enjoy!  :-)	http://www.isthe.com/chongo/tech/comp/calc/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -