Log and LogE (Float functions): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(26 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Template:Float:Log subtitle}}
{{Template:Float:Log and LogE subtitle}}


{{Template:Float:LogE subtitle}}
The <var>Log</var> and <var>LogE</var> [[Intrinsic classes|intrinsic]] functions return a number that is the natural [http://en.wikipedia.org/wiki/Logarithm logarithm] (the logarithm base [http://en.wikipedia.org/wiki/E_%28mathematical_constant%29 &#x212f;]) of the method object value.


These [[Intrinsic classes|intrinsic]] functions return a number that is the natural [http://en.wikipedia.org/wiki/Logarithm logarithm]
<var>LogE</var> is a synonym for <var>Log</var>.
(the logarithm base-''[http://en.wikipedia.org/wiki/E_%28mathematical_constant%29 e]]'') of the method object value.


''LogE'' is a synonym for ''Log''.
==Syntax==
 
Available as of version 7.3 of the [[Sirius Mods]], the Log and LogE functions are
object-oriented versions of the $Log function.
===Log syntax===
{{Template:Float:Log syntax}}
{{Template:Float:Log syntax}}
{{Template:Float:LogE syntax}}
{{Template:Float:LogE syntax}}
====Syntax terms====
<dl>
<dt>%value
<dd>A numeric variable to receive the log of the method object.
<dt>number
<dd>A Float value.
</dl>
===Usage Notes===
*If ''number'' is not greater than zero, the request is cancelled.
===Examples===
The following statement returns &ldquo;''3.14159:log = 1.14472904118518''&rdquo;.
    [[Intrinsic classes#printtext|printText]] {~} = {3.14159:log}


===See also===
===Syntax terms===
[[List of intrinsic Float methods]]
<table class="syntaxTable">
[[Category: Intrinsic Float methods|Log and Log E function]]
<tr><th>%number </th>
[[Category: Intrinsic methods]]
<td>A numeric variable to receive the log of the method object. </td></tr>
 
<tr><th>float</th>
<td>A <var>Float</var> value.</td></tr>
</table>
 
==Usage notes==
<ul>
<li>If <var class="term">float</var> is less than or equal to zero, then the request is cancelled.
 
<li><var>Log</var> or <var>LogE</var> is an object-oriented version of the <var>[[$Log]]</var> function.


<li><var>Log</var> and <var>LogE</var> are available as of <var class="product">Sirius Mods</var> Version 7.3.
</ul>


==Examples==
The following statement returns <code>3.14159:log = 1.14472904118518</code>.
<p class="code">[[PrintText statement|printText]] {~} = {3.14159:log}</p>


<!--
==See also==
<section begin=dpl_desc />
{{Template:Float:Log and LogE footer}}
Natural log (log base e) of number
<section end=dpl_desc />
-->

Latest revision as of 17:55, 2 November 2012

Natural log (base e) of a number (Float class)


The Log and LogE intrinsic functions return a number that is the natural logarithm (the logarithm base ) of the method object value.

LogE is a synonym for Log.

Syntax

%number = float:Log

%number = float:LogE

Syntax terms

%number A numeric variable to receive the log of the method object.
float A Float value.

Usage notes

  • If float is less than or equal to zero, then the request is cancelled.
  • Log or LogE is an object-oriented version of the $Log function.
  • Log and LogE are available as of Sirius Mods Version 7.3.

Examples

The following statement returns 3.14159:log = 1.14472904118518.

printText {~} = {3.14159:log}

See also