Campbell CR5000 Spécifications Page 177

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 238
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 176
Section 8. Processing and Math Instructions
8-5
Pi/2
-Pi/2
Pi
0
+y
+x
-x
-y
ATN2 is the inverse trigonometric function of TAN, which takes an angle as
its argument and returns the ratio of two sides of a right triangle. Do not
confuse ATN2 with the cotangent, which is the simple inverse of a tangent
(1/tangent).
ATN2 Function Example
The example uses ATN2 to calculate π. By definition, a full circle is 2π
radians. ATN2(1,1) is π/4 radians (90 degrees).
Dim Pi 'Declare variables.
Pi = 4 * ATN2( 5, 5 ) 'Calculate Pi.
AvgSpa (Dest, Swath, Source)
Computes the spatial average of the values in the source array.
Syntax
AvgSpa (Dest, Swath, Source)
Remarks
Find the average of the values in the given array and place the result in the
variable named in Dest. The Source must be a particular element in an array
(e.g., Temp(1)); it is the first element in the array to include in the average.
The Swath is the number of elements to include in the average.
Dest
Xi
swath
ij
ijswath
=
=
=+
()
Where X(j) = Source
Vue de la page 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 237 238

Commentaires sur ces manuels

Pas de commentaire