ex.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
EXP and LOG Functions Example
                        Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
' This example uses the EXP and LOG functions to print the value of e and
' calculates the natural logarithm of e taken to the first, second, and
' third powers.
 
 CLS                              ' Clear the screen
 PRINT EXP(1),
 FOR I = 1 TO 3
     PRINT LOG(EXP(1) ^ I),
 NEXT