Apple II User Manual

Page of 257
FUNCTION                 FUNCTION EXPRESSED IN TERMS OF BASIC FUNCTIONS
INVERSE HYPERBOLIC
SINE                     ARGSINH(X) = LOG(X+SQR(X*X+1))
INVERSE HYPERBOLIC
COSINE                   ARGCOSH(X) = LOG(X+SQR(X*X-1))
INVERSE HYPERBOLIC
TANGENT                  ARGTANH(X) = LOG((1+X)/(1-X))/2
INVERSE HYPERBOLIC
SECANT                   ARGSECH(X) = LOG((XQR(-X*X+1)+1)/X
INVERSE HYPERBOLIC
COSECANT                 ARGCSCH(X) = LOG((SGN(X)*SQR(X*X+1)+1)/X)
INVERSE HYPERBOLIC
COTANGENT                ARGCOTH(X) = LOG((X+1)/(X-1))/2
A  ERROR MESSAGES
If an error occurs, BASIC outputs an error message, returns to command level and displays the
cursor.  Variable values and the program text remain intact, but the program can not be continued
and all GOSUB and FOR context is lost.
When an error occurs in a direct statement, no line number is printed.
Format of error messages:
     Direct Statement         ?XX ERROR
     Indirect Statement       ?XX ERROR IN YYYYY
In both of the above examples, "XX" will be the error code.  The "YYYYY" will be the line
number where the error occured for the indirect statement.
The following are the possible error codes and their meanings:
ERROR CODE     MEANING
    BS         Bad Subscript.  An attempt was made to reference a matrix element
               which is outside the dimensions of the matrix.  This error can occur
               if the wrong number of dimensions are used in a matrix reference;
               for instance, LET A(1,1,1)=Z when A has been dimensioned DIM
               A(2,2).
    CN         Continue error, Attempt to continue a program when none exists, an
               error occured, or after a new line was typed into the program.
    DD         Double Dimension.  After a matrix was dimensioned, another DIM
               statement for the same matrix was encountered.  This error often
               occurs if a matrix has been given the default dimension 10 because
               a statement like A(I)=3 is encountered and then later in the program
               a DIM A(100) is found,
    FC         Function Call error, The parameter passed to a math or string func-
               tion was out of range.  FC errors can occur due to:
                   1.  A negative matrix subscript (LET A(-1)=0)
                   2.  An unreasonably large matrix subscript (>32767)
                   3.  LOG-negative or zero argument
                   4.  SQR-negative argument
                   5.  A^B with A negative and B not an integer
                   6.  A call to USR before the address of the machine language