logo-header

 
 

syntax

  • cos(angle)

definition

cos(angle) results in the cosinus of data item a.

description

Data item angle need to be expressed in the unit radian (radiaal), the SI unit for angles.

applies to

Data item angle with float32 or float64 value type

since version:

5.18

example

attribute<float64> Angle_rad    (ADomain) := Angle * pi() / 180.0;
attribute<float64> cosAngle_rad (ADomain) := cos(Angle_rad);
Angle(°) Angle_rad(rad)   cosAngle_radA
0 0 1
30 0.52 0.87
45 0.79 0.71
420 7.33 0.5
null null null
ADomain, nr of rows = 5

see also


OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904