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

Log

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 14:14, 29 July 2008 (edit)
85.144.194.29 (Talk)
(New article: Log.dll: log())
← Previous diff
Current revision (18:06, 29 July 2008) (edit) (undo)
Sandman (Talk | contribs)
m (combined definition to one, like seen on CD page)
 
(One intermediate revision not shown.)
Line 8: Line 8:
==Definition== ==Definition==
-'''FLOAT''' log ( <'''FLOAT''' n> , <'''FLOAT''' b> )+'''FLOAT''' log ( <'''FLOAT''' n> , [<'''FLOAT''' b>] )
-Returns a [http://en.wikipedia.org/wiki/Logarithm logarithm] of number n with base b. +Returns a [http://en.wikipedia.org/wiki/Logarithm logarithm] of number ''n'' with base ''b''. If ''b'' is not specified, the number 10 will be used as base.
- +
- +
-'''FLOAT''' log ( <'''FLOAT''' n> )+
- +
-Returns a [http://en.wikipedia.org/wiki/Logarithm logarithm] of number n with base 10.+
== Parameters == == Parameters ==
Line 25: Line 20:
== Returns == == Returns ==
-'''FLOAT''' : The logarithm of n.+'''FLOAT''' : The logarithm of ''n''.
== Example == == Example ==
Line 33: Line 28:
Global Global
float logarithm=0.0; float logarithm=0.0;
 +End
Process main() Process main()
Line 46: Line 42:
End End
</pre> </pre>
-Used in example: [[import]], [[write_float]](), [[key]](), [[log]](), [[log2]](), [[ln]]()+Used in example: [[import]], [[write_float]](), [[key]](), [[log]]()
 + 
 +{{Logfuncbox}}

Current revision

Up to Log.dll functions



Contents

[edit] Definition

FLOAT log ( <FLOAT n> , [<FLOAT b>] )

Returns a logarithm of number n with base b. If b is not specified, the number 10 will be used as base.

[edit] Parameters

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

[edit] Returns

FLOAT : The 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=log(1000,9); End 
        If (key(_2)) logarithm=log(1000); End

        Frame;
    End
End

Used in example: import, write_float(), key(), log()


Log.DLL Functions
Ln() • Log() • Log2() •
Personal tools