Basic30 Language Reference
logf Function

Return the natural logarithm of a 32 bit floating point value .

Function logf(x As Single) As Single

Requirements

  1. This function requires the link time library "libm.a".  It is a free download from the Microchip website.
  2. The flie <libs/math.bas> must be included in the Basic source to use this function.

Examples

#include <libs/math.bas>

Dim a,x as Single

x=logf(a)
 

Also See: exp, log10pow