TAN

From C64-Wiki
Jump to: navigation, search
BASIC keyword
Keyword: TAN
Abbreviation:
Type: Function
Token code: 192/$C0
Handling routine
in BASIC ROM:
58036–58079
$E2B4–E2DF
List of all BASIC keywords


Remark: This article describes the BASIC-Command TAN in BASIC V2 at the Commodore 64.

Typ: Numeric Function 
General Programming-Syntax: TAN(<Numeric>)

The numeric function TAN is a mathemathical function for tangent.

When the term isn't a number, the BASIC error ?TYPE MISMATCH ERROR IN line occurrs. It can be only used number with values from -1e+38 until 1e+38. Then this area is out of range the BASIC error?OVERFLOW ERROR IN line is viewing. Also the BASIC error ?DIVISION BY ZERO can appear. When the numeric argument is absent, it appears a ?SYNTAX ERROR IN line.

Examples[edit]

PRINT TAN(1) Screen: 1.55740772
BASIC V2.0 (second release) Commands

ABS | AND | ASC | ATN | CHR$ | CLOSE | CLR | CMD | CONT | COS | DATA | DEF | DIM | END | EXP | FN | FOR | FRE | GET | GET# | GOSUB | GOTO | IF | INPUT | INPUT# | INT | LEFT$ | LEN | LET | LIST | LOAD | LOG | MID$ | NEW | NEXT | NOT | ON | OPEN | OR | PEEK | POKE | POS | PRINT | PRINT# | READ | REM | RESTORE | RETURN | RIGHT$ | RND | RUN | SAVE | SGN | SIN | SPC | SQR | STATUS/ST | STEP | STOP | STR$ | SYS | TAB | TAN | THEN | TIME/TI | TIME$/TI$ | TO | USR | VAL | VERIFY | WAIT