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

Ln

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 17:59, 29 July 2008 (edit)
Sandman (Talk | contribs)
m
← Previous diff
Current revision (18:01, 29 July 2008) (edit) (undo)
Sandman (Talk | contribs)
m (Definition)
 
Line 10: Line 10:
'''FLOAT''' ln ( <'''FLOAT''' n> ) '''FLOAT''' ln ( <'''FLOAT''' n> )
-Returns the [http://en.wikipedia.org/wiki/Natural_logarithm natural logarithm] of number n ([http://en.wikipedia.org/wiki/Logarithm logarithm] with base ε (Euler)).+Returns the [http://en.wikipedia.org/wiki/Natural_logarithm natural logarithm] of number ''n'' ([http://en.wikipedia.org/wiki/Logarithm logarithm] with base ε (Euler)).
== Parameters == == Parameters ==

Current revision

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