This wiki is out of date, use the continuation of this wiki instead

Ln

From FenixWiki

(Difference between revisions)
Jump to: navigation, search

85.144.194.29 (Talk)
(New article: Log.dll: ln())
Next diff →

Revision as of 14:28, 29 July 2008

Up to Log.dll functions



Contents

Definition

FLOAT ln ( <FLOAT n> )

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

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;

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()

Personal tools