Remote-processing CAMBASIC Manual de usuario Pagina 39

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 208
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 38
Commands - 6
ATN
Numeric Fun ction
SYNTAX: n = ATN(m)
PURPOSE: To return the arctangent of m.
REMARK S: The result, n, of the ATN function is a value in radians in the range of – PI/2 to PI/2, wher e PI =
3.141593. The expr ession may be integer , bu t the evaluation is alw ays performed in floating point.
To obtain the tangent of m when m is in degrees, use TAN (m*B180).
Trigonometr ic functions ar e computed as a power ser ies in CA MBASIC. Calculations are done in
single precision floating point to seven digits of precision. Since the power series is an
approximation, the result will be accurate to four to six digits, depending upon the value of m.
RELATED: COS, SIN, TAN
EXAMPLE: 10 PI = 3.141593
20 RADIANS = ATN(1)
30 DEGREES = RADIANS * 180 / PI
40 PRINT RADIANS,DEGREES
RUN
.785398 45
ERROR: none
Vista de pagina 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 207 208

Comentarios a estos manuales

Sin comentarios