Difference between pages "Commgroup" and "Cos"

From Mesham
(Difference between pages)
Jump to navigationJump to search
(Semantics)
 
(Created page with '== Overview == This cos[n] function will find the cosine of the value or variable ''n'' passed to it. '''Pass''' A double to find cosine of '''Returns''' A double representing …')
 
Line 1: Line 1:
== Syntax ==
+
== Overview ==
  
commgroup[process list]
+
This cos[n] function will find the cosine of the value or variable ''n'' passed to it.
  
== Semantics ==
+
'''Pass''' A double to find cosine of
 
+
'''Returns''' A double representing the cosine
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() {
+
  var a:=cos[10];
    var i:Int :: allocated[multiple[commgroup[1,3]]];
+
  var y;
  };
+
y:=cos[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''
 
  
[[Category:Type Library]]
+
[[Category:Function Library]]
[[Category:Compound Types]]
+
[[Category:Maths Functions]]
[[Category:Allocation Types]]
 

Revision as of 22:04, 10 January 2010

Overview

This cos[n] function will find the cosine of the value or variable n passed to it.

Pass A double to find cosine of Returns A double representing the cosine

Example

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