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 14:28, 29 July 2008 (edit)
85.144.194.29 (Talk)
(New article: Log.dll: ln())
← Previous diff
Current revision (18:01, 29 July 2008) (edit) (undo)
Sandman (Talk | contribs)
m (Definition)
 
(One intermediate revision not shown.)
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 e).+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 ==
Line 18: Line 18:
== Returns == == Returns ==
-'''FLOAT''' : The natural logarithm of n.+'''FLOAT''' : The natural logarithm of ''n''.
== Example == == Example ==
Line 26: Line 26:
Global Global
float logarithm=0.0; float logarithm=0.0;
 +End
Process main() Process main()
Line 31: Line 32:
write_float(0,160,100,4,&logarithm); write_float(0,160,100,4,&logarithm);
- While(not(key(_esc)))+ While(not(key(_ESC)))
If (key(_1)) logarithm=ln(13.37); End If (key(_1)) logarithm=ln(13.37); End
Line 39: Line 40:
</pre> </pre>
Used in example: [[import]], [[write_float]](), [[key]](), [[ln]]() Used in example: [[import]], [[write_float]](), [[key]](), [[ln]]()
 +
 +{{Logfuncbox}}

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