17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GW-BASIC <strong>User's</strong> Guide<br />

ATN Function<br />

Purpose:<br />

To return the arctangent of x, when x is expressed in radians.<br />

Syntax:<br />

ATN(x)<br />

Comments:<br />

The result is within the range of -π/2 to π/2.<br />

The expression x may be any numeric type. The evaluation of ATN is performed in single<br />

precision unless the /d switch is used when GW-BASIC is executed.<br />

To convert from degrees to radians, multiply by π/180.<br />

Examples:<br />

10 INPUT X<br />

20 PRINT ATN(X)<br />

RUN<br />

? 3<br />

1.249046<br />

Prints the arctangent of 3 radians (1.249046).<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/ATN.html28/03/2004 21.29.12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!