Remote-processing CAMBASIC Manuale Utente Pagina 58

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 208
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 57
Commands - 25
COS
Numeric Fun ction
SYNTAX: n = COS(m)
PURPOSE: To return the trigonometric cosine function.
REMARK S: m must be in radians. To conver t from degrees to radians, multiply by PI/180 where P I =
3.141593.
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: ATN, SIN, TAN
EXAMPLE: 10 PI = 3.141593
20 PRINT COS(PI)
30 DEGREES = 180
40 RADIANS = DEGREES * PI/180
50 PRINT COS(RADIANS)
RUN
–1
–1
ERROR: none
Vedere la pagina 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 207 208

Commenti su questo manuale

Nessun commento