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

Ln

From FenixWiki

Revision as of 18:01, 29 July 2008 by Sandman (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Up to Log.dll functions



Contents

[edit] Definition

FLOAT ln ( <FLOAT n> )

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

[edit] Parameters

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

[edit] Returns

FLOAT : The natural logarithm of n.

[edit] 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() •
Personal tools