Difference between revisions of "Log"
Jump to navigation
Jump to search
imported>Kkuhlmann |
imported>Ez0n3 |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==''' | {{Function | ||
|origin = GECK1 | |||
|summary = '''Log''' when given a number will return the natural log of that number. Alternatively, a base can be defined by a second number. | |||
|name = Log | |||
|arguments = | |||
{{FunctionArgument | |||
|Name = x | |||
|Type = int | |||
}}{{FunctionArgument | |||
|Name = y | |||
|Type = int (optional) | |||
}} | |||
|example = log x ; will return, ln x | |||
log x y ; will return, log base y of x | |||
}} | |||
==Notes== | |||
*Sin, cos, tan, pow, log, and abs (particularly pow and log) are extremely slow. Do not use them in script blocks that get executed every frame. | |||
*This function is new in the GECK, and was not available in the TES4 Construction Set. However, it was available through the OBSE script extender. | |||
==See Also== | |||
*[[Abs]] | |||
*[[Cos]] | |||
*[[Pow]] | |||
*[[Sin]] | |||
*[[Tan]] | |||
*Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/Acos Acos (OBSE function)] | |||
*Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/Cos Cos (OBSE function)] | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1.1)]] | |||
[[Category:Math Functions]] | [[Category:Math Functions]] | ||
[[Category:Math Functions (GECK 1.1)]] |
Latest revision as of 09:10, 12 January 2011
< [[::Category:Functions|Category:Functions]]
A function included in the GECK version 1.1.0.36.
Description
Log when given a number will return the natural log of that number. Alternatively, a base can be defined by a second number.
Syntax
Log x:int y:int (optional)
Example
log x ; will return, ln x
log x y ; will return, log base y of x
Notes
- Sin, cos, tan, pow, log, and abs (particularly pow and log) are extremely slow. Do not use them in script blocks that get executed every frame.
- This function is new in the GECK, and was not available in the TES4 Construction Set. However, it was available through the OBSE script extender.
See Also
- Abs
- Cos
- Pow
- Sin
- Tan
- Link to TES4 Construction Set Wiki: Acos (OBSE function)
- Link to TES4 Construction Set Wiki: Cos (OBSE function)