Difference between pages "Getprime" and "Log"

From Mesham
(Difference between pages)
Jump to navigationJump to search
m (4 revisions imported)
 
(Created page with '== Overview == This log[n] function will find the logarithmic value of ''n'' * '''Pass:''' A double * '''Returns:''' A double representing the logarithmic value\twolines{} == …')
 
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
This getprime(n) function will find the ''n''th prime number.
+
This log[n] function will find the logarithmic value of ''n''
  
* '''Pass:''' An [[Int]]
+
* '''Pass:''' A double
* '''Returns:''' An [[Int]] representing the prime
+
* '''Returns:''' A double representing the logarithmic value\twolines{}
  
 
== Example ==
 
== Example ==
  
  #include <maths>
+
  var a:=log[10];
+
var y;
function void main() {
+
y:=log[a];
    var a:=getprime(10);
 
    var y:=getprime(a);
 
};
 
 
 
''Since: Version 0.41b''
 
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Revision as of 22:10, 10 January 2010

Overview

This log[n] function will find the logarithmic value of n

  • Pass: A double
  • Returns: A double representing the logarithmic value\twolines{}

Example

var a:=log[10];
var y;
y:=log[a];