Power functions
 
Syntax


#define include_power_exp_log_sqrt
#include <AB_Math.bas>

sqrt( x)

exp( x )      '  return 2.71828 raised to x power

logn( x )     '  natural log

pow(x, p)   '  returns x raised to p power -- both SINGLE

log ( x )     '   returns value 10 musted be raised to to produce x

Description


Part of a user contributed library that computes the standard trigonometric functions.

Example

#define include_power_exp_log_sqrt
#include <AB_Math.bas>

for i= 0 to 10
   print i,sqrt(i)
next i

 

See also