Difference between revisions of "Manuals/calci/LOG"

From ZCubes Wiki
Jump to navigation Jump to search
Line 1: Line 1:
=LOG(number, base)=
+
=LOG(n, base)=
  
*Where 'number' is the positive real number and  
+
*Where 'n' is a positive real number and  
 
*'base' is the base of the logarithm.
 
*'base' is the base of the logarithm.
  
LOG() determines the logarithm of a number to the specified base.
+
LOG() determines the logarithm of a number to a specified base.
  
 
== Description ==
 
== Description ==
  
LOG(number, base)
+
LOG(n, base)
  
 
For Example,
 
For Example,
Line 16: Line 16:
 
LOG(100,10) ''returns 2''
 
LOG(100,10) ''returns 2''
  
*The 'number' should be a positive real number. Else Calci displays NaN error message.
+
*The number should be a positive real number. Else Calci displays NaN error message.
*The 'base' should be a positive real number. Else Calci displays NaN error message.
+
*The base should be a positive real number. Else Calci displays NaN error message.
*If the 'base' is omitted, Calci assumes it to be 10.
+
*If the base is omitted, Calci assumes it to be 10.
 
*The function can be used to find the logarithm of array of numbers with a specified base.
 
*The function can be used to find the logarithm of array of numbers with a specified base.
  
Line 51: Line 51:
  
 
|- class="odd"
 
|- class="odd"
| class="sshl_f" |
+
| class="sshl_f" | 50
| class="sshl_f" |
+
| class="sshl_f" | 10
 
| class="sshl_f" |
 
| class="sshl_f" |
  
 
|- class="even"
 
|- class="even"
| class="sshl_f" |
+
| class="sshl_f" | 7.5
| class="sshl_f" |
+
| class="sshl_f" | 7.5
 
| class="sshl_f" |
 
| class="sshl_f" |
  
 
|- class="odd"
 
|- class="odd"
| class="sshl_f" |
+
| class="sshl_f" | 120
| class="sshl_f" |
+
| class="sshl_f" |  
 
| class="sshl_f" |
 
| class="sshl_f" |
  
 
|- class="even"
 
|- class="even"
| class="sshl_f" |
+
| class="sshl_f" | 700
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |

Revision as of 17:30, 5 December 2013

LOG(n, base)

  • Where 'n' is a positive real number and
  • 'base' is the base of the logarithm.

LOG() determines the logarithm of a number to a specified base.

Description

LOG(n, base)

For Example,

LOG(10, 2) returns 3.3219280948873626

LOG(100,10) returns 2

  • The number should be a positive real number. Else Calci displays NaN error message.
  • The base should be a positive real number. Else Calci displays NaN error message.
  • If the base is omitted, Calci assumes it to be 10.
  • 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 -

number 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

See Also

References