intel MCS BASIC-52 — Intel MCS BASIC-52 Versions 1 & 1.1 Operating and Reference Manual PDF (EN)

int e l 5.2.2 UNARY OPERATORS -- LOG FUNCTIONS LOG([expr]) Returns the natural logarithm of the argument. The argument must be greater than 0. This calculation is carried out to 7 significant digits. EXAMPLES: PPINT LOG(12) PRINT LOG(EXP(1)) 2.484906 1 EXP([expr]) This function raises the number "e" (2.7182818) to the power of the argument. EXAMPLES: PRINT EXP(1) PRINT EXP (L0G (2)) 2.7182818 2 5.2.3 UNARY OPERATORS -- TRIG FUNCTIONS SlN([expr]) Returns the SIN of the argument. The argument is expressed in radians. Calculations are carried out to 7 significant digits. The argument must be between +- 200000. EXAMPLES:

PRINT SIN(PI/4) PRINT SIN(0) .7071067 0 COS([expr]) Returns the COS of the argument. The argument is expressed in radians. Calculations are carried out to 7 significant digits. The argument must be between +- 200000. EXAMPLES: PRINT COS(PI/4) PRINT(COS(0)) 7071067 1 - 78 -