- This wiki is out of date, use the continuation of this wiki instead
Ln
From FenixWiki
(Difference between revisions)
Revision as of 14:28, 29 July 2008 (edit) 85.144.194.29 (Talk) (New article: Log.dll: ln()) ← Previous diff |
Revision as of 17:59, 29 July 2008 (edit) (undo) Sandman (Talk | contribs) m Next diff → |
||
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 | + | 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( | + | 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}} |
Revision as of 17:59, 29 July 2008
Contents |
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() • |
Categories: Functions | Logdll | Dll