Difference between revisions of "Ln"

From Bennu Wiki
Jump to navigation Jump to search
(proper revert...)
 
(No difference)

Latest revision as of 03:47, 6 November 2009


Up to Log.dll functions



Definition

FLOAT ln ( <FLOAT n> )

Returns the natural logarithm of number n (logarithm with base ε (Euler)).

Parameters

FLOAT n - The number that will be used for the logarithm.

Returns

FLOAT : The natural logarithm of n.

Example

Import "log.dll";

Global
    float logarithm=0.0;
End

Process main()
Begin
    write_float(0,160,100,4,&logarithm);
	
    While(not(key(_ESC)))
	If (key(_1)) logarithm=ln(13.37); End 

        Frame;
    End
End

Used in example: import, write_float(), key(), ln()


Log.DLL Functions
Ln()Log()Log2()