From a788b0d9f8a557b32a9b31ee1dcb3b24a20ff210 Mon Sep 17 00:00:00 2001 From: Werner Macho Date: Thu, 21 Feb 2013 23:38:09 +0100 Subject: [PATCH] adding some function help files for field calculator, thanks to Zoltan Siki --- resources/function_help/acos-en_US | 12 ++++++++++++ resources/function_help/asin-en_US | 12 ++++++++++++ resources/function_help/atan-en_US | 12 ++++++++++++ resources/function_help/atan2-en_US | 15 +++++++++++++++ resources/function_help/cos-en_US | 12 ++++++++++++ resources/function_help/exp-en_US | 12 ++++++++++++ resources/function_help/sin-en_US | 12 ++++++++++++ resources/function_help/sqrt-en_US | 12 ++++++++++++ resources/function_help/tan-en_US | 12 ++++++++++++ resources/function_help/toint-en_US | 13 +++++++++++++ resources/function_help/toreal-en_US | 13 +++++++++++++ resources/function_help/tostring-en_US | 13 +++++++++++++ 12 files changed, 150 insertions(+) create mode 100644 resources/function_help/acos-en_US create mode 100644 resources/function_help/asin-en_US create mode 100644 resources/function_help/atan-en_US create mode 100644 resources/function_help/atan2-en_US create mode 100644 resources/function_help/cos-en_US create mode 100644 resources/function_help/exp-en_US create mode 100644 resources/function_help/sin-en_US create mode 100644 resources/function_help/sqrt-en_US create mode 100644 resources/function_help/tan-en_US create mode 100644 resources/function_help/toint-en_US create mode 100644 resources/function_help/toreal-en_US create mode 100644 resources/function_help/tostring-en_US diff --git a/resources/function_help/acos-en_US b/resources/function_help/acos-en_US new file mode 100644 index 00000000000..56bf2a3e21f --- /dev/null +++ b/resources/function_help/acos-en_US @@ -0,0 +1,12 @@ +

acos() function

+Returns arcuscosinus of a value in radians. + + +

Syntax

+ acos(real)

+ +

Arguments

+real -> cos of an angle.

+ +

Example

+ acos(0.5) -> 1.0471975511966

diff --git a/resources/function_help/asin-en_US b/resources/function_help/asin-en_US new file mode 100644 index 00000000000..d4a9532f676 --- /dev/null +++ b/resources/function_help/asin-en_US @@ -0,0 +1,12 @@ +

asin() function

+Returns arcussinus of a value in radians. + + +

Syntax

+ asin(real)

+ +

Arguments

+real -> sin of an angle.

+ +

Example

+ asin(1.0) -> 1.5707963267949

diff --git a/resources/function_help/atan-en_US b/resources/function_help/atan-en_US new file mode 100644 index 00000000000..77ac6b0c0ca --- /dev/null +++ b/resources/function_help/atan-en_US @@ -0,0 +1,12 @@ +

atan() function

+Returns arcustanget of a value in radians. + + +

Syntax

+ atan(real)

+ +

Arguments

+real -> tan of an angle.

+ +

Example

+ atan(0.5) -> 0.463647609000806

diff --git a/resources/function_help/atan2-en_US b/resources/function_help/atan2-en_US new file mode 100644 index 00000000000..81401146b2c --- /dev/null +++ b/resources/function_help/atan2-en_US @@ -0,0 +1,15 @@ +

atan2() function

+Returns arcustangens of y/x using the signs of the two +arguments to determine the quadrant of the result + + + +

Syntax

+ atan2(real, real)

+ +

Arguments

+real -> y coordinate difference
+real -> x coordinate difference

+ +

Example

+ atan2(1.0, 1.732) -> 0.523611477769969

diff --git a/resources/function_help/cos-en_US b/resources/function_help/cos-en_US new file mode 100644 index 00000000000..2996f06a927 --- /dev/null +++ b/resources/function_help/cos-en_US @@ -0,0 +1,12 @@ +

cos() function

+Returns cosinus of an angle. + + +

Syntax

+ cos(real)

+ +

Arguments

+real -> angle in radians.

+ +

Example

+ cos(1.571) -> 0.000796326710733263

diff --git a/resources/function_help/exp-en_US b/resources/function_help/exp-en_US new file mode 100644 index 00000000000..1add3f050ce --- /dev/null +++ b/resources/function_help/exp-en_US @@ -0,0 +1,12 @@ +

exp() function

+Returns exponential of an value. + + +

Syntax

+ exp(real)

+ +

Arguments

+real -> number.

+ +

Example

+ exp(1.0) -> 2.71828182845905

diff --git a/resources/function_help/sin-en_US b/resources/function_help/sin-en_US new file mode 100644 index 00000000000..1373b6d80db --- /dev/null +++ b/resources/function_help/sin-en_US @@ -0,0 +1,12 @@ +

sin() function

+Returns sinus of an angle. + + +

Syntax

+ sin(real)

+ +

Arguments

+real -> angle in radians.

+ +

Example

+ sin(1.571) -> 0.999999682931835

diff --git a/resources/function_help/sqrt-en_US b/resources/function_help/sqrt-en_US new file mode 100644 index 00000000000..fbd8de3e60a --- /dev/null +++ b/resources/function_help/sqrt-en_US @@ -0,0 +1,12 @@ +

sqrt() function

+Returns square root of a value + + +

Syntax

+ sqrt(real)

+ +

Arguments

+real -> number.

+ +

Example

+ sqrt(9) -> 3

diff --git a/resources/function_help/tan-en_US b/resources/function_help/tan-en_US new file mode 100644 index 00000000000..315f9c66b0c --- /dev/null +++ b/resources/function_help/tan-en_US @@ -0,0 +1,12 @@ +

tan() function

+Returns tangent of an angle. + + +

Syntax

+ tan(real)

+ +

Arguments

+real -> angle in radians.

+ +

Example

+ tan(1.0) -> 1.5574077246549

diff --git a/resources/function_help/toint-en_US b/resources/function_help/toint-en_US new file mode 100644 index 00000000000..73082fb953a --- /dev/null +++ b/resources/function_help/toint-en_US @@ -0,0 +1,13 @@ +

toint function

+Converts a string to integer number. Nothing changed if a value cannot be converted to integer (e.g '123asd' is invalid). + +

Syntax

+ toint(string)

+ +

Arguments

+ + string -> is string. The String to convert to integer number.

+ +

Example

+ + toint('123') -> 123

diff --git a/resources/function_help/toreal-en_US b/resources/function_help/toreal-en_US new file mode 100644 index 00000000000..80c319a1874 --- /dev/null +++ b/resources/function_help/toreal-en_US @@ -0,0 +1,13 @@ +

toreal function

+Converts a string to real number. Nothing changed if a value cannot be converted to real (e.g '123.56asd' is invalid). Numbers are rounded after saving changes if the precision is smaller than the result of the conversion. + +

Syntax

+ toreal(string)

+ +

Arguments

+ + string -> is string. The String to convert to real number.

+ +

Example

+ + toreal('123.45') -> 123.45

diff --git a/resources/function_help/tostring-en_US b/resources/function_help/tostring-en_US new file mode 100644 index 00000000000..aa8a9386c27 --- /dev/null +++ b/resources/function_help/tostring-en_US @@ -0,0 +1,13 @@ +

tostring function

+Converts a number to string. + +

Syntax

+ tostring(number)

+ +

Arguments

+ +number -> is integer or real. The number to convert to string.

+ +

Example

+ + tostring(123) -> '123'