|
|
Line 1: |
Line 1: |
− | == Syntax == | + | == Overview == |
| | | |
− | commgroup[process list]
| + | This log(d) function will find the natural logarithmic value of ''d'' |
| | | |
− | == Semantics ==
| + | * '''Pass:''' A [[Double]] |
− | | + | * '''Returns:''' A [[Double]] representing the logarithmic value |
− | Specified within the multiple type, will limit memory allocation (and variable communication) to the processes within the list given in this type's arguments. This type will ensure that the communications group processes exist. All variables marked in this way are private to their local processes.
| |
| | | |
| == Example == | | == Example == |
| | | |
− | function void main() { | + | #include <maths> |
− | var i:Int :: allocated[multiple[commgroup[1,3]]];
| + | var a:=log(10.54); |
− | }; | + | var y:=log(a); |
− | | |
− | In this example there are a number processes, but only 1 and 3 have variable ''i'' allocated to them. This type would have also ensured that process two (and zero) exists for there to be a process three.
| |
| | | |
− | ''Since: Version 0.5'' | + | ''Since: Version 0.41b'' |
| | | |
− | [[Category:Type Library]] | + | [[Category:Function Library]] |
− | [[Category:Compound Types]] | + | [[Category:Maths Functions]] |
− | [[Category:Allocation Types]]
| |
Revision as of 18:34, 13 January 2013
Overview
This log(d) function will find the natural logarithmic value of d
- Pass: A Double
- Returns: A Double representing the logarithmic value
Example
#include <maths>
var a:=log(10.54);
var y:=log(a);
Since: Version 0.41b