Difference between revisions of "Manuals/calci/LOG"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...")
 
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''LOG (Number,Base)'''</div><br/>
  
Syntax
+
*<math>Number</math> is a positive real number and
 +
*<math>Base</math> is the base of the logarithm.
 +
**LOG(), returns the logarithm of a number to a specified base.
  
</div></div>
+
== Description ==
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
LOG(Number,Base)
  
</div></div>
+
For Example,
----
 
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
LOG(10, 2) ''returns 3.3219280948873626''
  
</div></div>
+
LOG(100,10) ''returns 2''
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">LOG</font>  </font>'''</div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><br /><div id="7Space" class="gamizbox" title="7Space"><div id="7SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="7SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="7SpaceRollupContent" align="center"></span></span></div><div id="7SpaceCover"><div id="7SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3" face="Times New Roman"> </font>
 
  
'''LOG''' ('''n1''', base)
+
LOG(4, 0.5) ''returns -2''
  
Where''' n1''' is the positive real number. And b'''ase''' is the base of the logarithm.
+
*The <math>Number</math>  should be a positive real number. Else Calci displays NaN error message.
 +
*The <math>Base</math> should be a positive real number. Else Calci displays NaN error message.
 +
*If the <math>Base</math> is omitted, Calci assumes it to be 10.
 +
*LOG() can be used in an equation as -
 +
LOG(LOG(10,2),3) + LOG(10,2) ''returns 4.414711580210549''
  
</div></div>
+
*The function can be used to find the logarithm of array of numbers with a specified base.
----
 
<div id="14SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="5Space" class="gamizbox" title="5Space"><div id="5SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="5SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="5SpaceRollupContent" align="center"></span></span></div><div id="5SpaceCover"><div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
 
  
LOG function gives you the logarithm of a number to the base you specify.
+
e.g. LOG(10..15, 2) that displays the output as below -
  
</div></div>
+
{| class="wikitable"
----
+
|-
<div id="12SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="9Space" class="gamizbox" title="9Space"><div id="9SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="9SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="9SpaceRollupContent" align="center"></span></span></div><div id="9SpaceCover"><div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3"><font face="Times New Roman"> 
+
! n !! base !! LOG Output
 +
|-
 +
| 10 || 2 || 3.3219280948873626
 +
|-
 +
| 11 || 2 || 3.4594316186372977
 +
|-
 +
| 12 || 2 || 3.5849625007211565
 +
|-
 +
| 13 || 2 || 3.700439718141092
 +
|-
 +
| 14 || 2 || 3.8073549220576037
 +
|-
 +
| 15 || 2 || 3.9068905956085187
 +
|}
  
Lets see an example in (Column1Row 1, Column2Row1)
+
== Examples ==
  
LOG (ni, base)
 
 
LOG (C1R1, C2R1)''''''
 
 
That is LOG (10, 2) is 3.3219
 
 
</font></font></div></div>
 
----
 
 
<div id="6SpaceContent" class="zcontent" align="left">
 
<div id="6SpaceContent" class="zcontent" align="left">
  
 
{| id="TABLE3" class="SpreadSheet blue"
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
|- class="even"
| class="  " |
 
<div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| Column1
 
| class="  " | Column2
 
| class="  " | Column3
 
| class="  " | Column4
 
|- class="odd"
 
| class=" " | Row1
 
 
| class="sshl_f" | 10
 
| class="sshl_f" | 10
 
| class="sshl_f" | 2
 
| class="sshl_f" | 2
 
| class="sshl_f" |
 
| class="sshl_f" |
| class="sshl_f" |
+
 
|- class="even"
 
| class="  " | Row2
 
| class="    sshl_f    " |
 
| class="sshl_f      " | 3.321928
 
| class="sshl_f SelectTD  SelectTD ChangeBGColor" |
 
| class="sshl_f" |
 
 
|- class="odd"
 
|- class="odd"
| Row3
+
| class="sshl_f" | 50
| class="sshl_f" |
+
| class="sshl_f" | 10
| class="sshl_f   " |
 
| class="sshl_f                     " |
 
 
| class="sshl_f" |
 
| class="sshl_f" |
 +
 
|- class="even"
 
|- class="even"
| Row4
+
| class="sshl_f" | 7.5
| class="sshl_f" |
+
| class="sshl_f" | 7.5
| class="sshl_f" |
 
| class="sshl_f" |
 
 
| class="sshl_f" |
 
| class="sshl_f" |
 +
 
|- class="odd"
 
|- class="odd"
| class=" " | Row5
+
| class="sshl_f" | 120
| class="sshl_f" |
+
| class="sshl_f" |  
| class="sshl_f" |
 
| class="sshl_f" |
 
 
| class="sshl_f" |
 
| class="sshl_f" |
 +
 
|- class="even"
 
|- class="even"
| Row6
+
| class="sshl_f" | 700
| class="sshl_f" |
 
| class="sshl_f" |
 
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
=LOG(A1,B2)  : Calculates the logarithm of 10 with base 10. Returns ''1'' as a result.
----
+
=LOG(A4:A5,B1)  : Calculates the logarithm of values 120, 700 with base B1 (2).Returns ''6.906890595608519, 9.451211111832329'' as a result.
</div></div></div></div></div></div></div></div></div>
+
=LOG(A4)  : Calculates the logarithm of 120. Here base is assumed to be 10. Returns ''2.0791812460476246'' as a result.
 +
=LOG(100,B3)  : Calculates the logarithm of 100 with base 7.5. Returns ''2.2855542619359994'' as a result.
 +
 
 +
==Related Videos==
 +
 
 +
{{#ev:youtube|Z5myJ8dg_rM|280|center|LOG}}
 +
 
 +
== See Also ==
 +
 
 +
*[[Manuals/calci/LN| LN]]
 +
 
 +
*[[Manuals/calci/LOG10| LOG10]]
 +
 
 +
==References==
 +
 
 +
*[http://en.wikipedia.org/wiki/Logarithm Logarithm]
 +
 
 +
 
 +
 
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 16:29, 17 August 2018

LOG (Number,Base)


  • is a positive real number and
  •  is the base of the logarithm.
    • LOG(), returns the logarithm of a number to a specified base.

Description

LOG(Number,Base)

For Example,

LOG(10, 2) returns 3.3219280948873626

LOG(100,10) returns 2

LOG(4, 0.5) returns -2

  • The should be a positive real number. Else Calci displays NaN error message.
  • The should be a positive real number. Else Calci displays NaN error message.
  • If the is omitted, Calci assumes it to be 10.
  • LOG() can be used in an equation as -

LOG(LOG(10,2),3) + LOG(10,2) returns 4.414711580210549

  • The function can be used to find the logarithm of array of numbers with a specified base.

e.g. LOG(10..15, 2) that displays the output as below -

n base LOG Output
10 2 3.3219280948873626
11 2 3.4594316186372977
12 2 3.5849625007211565
13 2 3.700439718141092
14 2 3.8073549220576037
15 2 3.9068905956085187

Examples

10 2
50 10
7.5 7.5
120
700
=LOG(A1,B2)  : Calculates the logarithm of 10 with base 10. Returns 1 as a result. 
=LOG(A4:A5,B1)  : Calculates the logarithm of values 120, 700 with base B1 (2).Returns 6.906890595608519, 9.451211111832329 as a result.
=LOG(A4)  : Calculates the logarithm of 120. Here base is assumed to be 10. Returns 2.0791812460476246 as a result.
=LOG(100,B3)  : Calculates the logarithm of 100 with base 7.5. Returns 2.2855542619359994 as a result.

Related Videos

LOG

See Also

References