Vision VTB-101 Guia do Utilizador Página 37

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 125
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 36
37
VTB USER GUIDE
8.8 ATAN2
It's similar to atan but it returns a value from -π and +π .
Hardware All
Syntax
Atan2 (y, x) as float
The arguments y and x are of type FLOAT.
Return Value
The return value coincides with the angle whose tangent is y / x.
Example
Used variables:
x float
y float
angle float
radians float
result float
PI float
PI= 3.141592
x=1.0
y=2.0
angle = 30
radians = angle * (PI/180)
result = Tan(radians) ' Calculate the tangent of 30 degree
radians = Atan(result) ' Calculate the Arctangent of the result
angle = radians * (180/PI)
radians = Atan2(y, x) ' Calculate the Atan2
angle = radians * (180/PI);
8.9 ABS
Return the absolute INTEGER value
Hardware All
Syntax
Abs (number) as long
The argument number can be a LONG value or any numeric expression.
Example
Used variables:
Num long
Num = -3250
Num = Abs(Num) return the value 3250
Vista de página 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 124 125

Comentários a estes Manuais

Sem comentários