Difference between pages "String" and "Asin"

From Mesham
(Difference between pages)
Jump to navigationJump to search
m
 
m
 
Line 1: Line 1:
== Syntax ==
+
== Overview ==
  
String
+
The asin(d) function will find the inverse sine of the value or variable ''d'' passed to it.
  
== Semantics ==
+
* '''Pass:''' A [[Double]] to find the inverse sine of
  
A string of characters. All strings are immutable, concatenation of strings will in fact create a new string.
+
* '''Returns:''' A [[Double]] representing the inverse sine
 
 
=== Default typing ===
 
 
 
{{ElementDefaultTypes}}
 
  
 
== Example ==
 
== Example ==
  
  var i:String;
+
#include <maths>
  var p:="Hello World!";
+
  var d:=asin(23);
 
+
  var y:=asin(d);
In this example variable ''i'' is explicitly declared to be of type ''String''. Variable ''p'' is found, via type inference, also to be of type ''String''.
 
 
 
''Since: Version 0.41b''
 
 
 
== Communication ==
 
  
{{ElementTypeCommunication}}
+
''Since: Version 1.0''
  
[[Category:Element Types]]
+
[[Category:Function Library]]
[[Category:Type Library]]
+
[[Category:Maths Functions]]

Revision as of 18:28, 13 January 2013

Overview

The asin(d) function will find the inverse sine of the value or variable d passed to it.

  • Pass: A Double to find the inverse sine of
  • Returns: A Double representing the inverse sine

Example

#include <maths>
var d:=asin(23);
var y:=asin(d);

Since: Version 1.0