ATN

(Difference between revisions)
Jump to: navigation, search
(Created page with "= <span class="f_Header">Action</span> = Returns the Arctangent of a single in radians. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;">&n...")
 
Line 16: Line 16:
  
 
= <span class="f_Header">Remarks</span> =
 
= <span class="f_Header">Remarks</span> =
<div style="padding: 0px; margin: 0px 0px 0px 4px;">
+
<div style="padding: 0px; margin: 0px 0px 0px 4px;"><div style="font-size: 13.3333330154419px; padding: 0px; margin: 0px 0px 0px 4px;">
 
{| width="539" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"
 
{| width="539" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
Line 23: Line 23:
  
 
| valign="top" width="100%" style="width: 448px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 448px; border: 1px solid rgb(0, 0, 0);" |  
A float variable that is assigned with the arctangent of variable single.
+
A float variable that is assigned with the arctangent of variable float.
  
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| valign="top" width="16%" style="width: 82px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="16%" style="width: 82px; border: 1px solid rgb(0, 0, 0);" |  
Single
+
float
  
 
| valign="top" width="100%" style="width: 448px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 448px; border: 1px solid rgb(0, 0, 0);" |  
Line 38: Line 38:
 
All trig functions work with radians. Use deg2rad and rad2deg to convert between radians and angles.
 
All trig functions work with radians. Use deg2rad and rad2deg to convert between radians and angles.
  
<span style="font-family: Arial;">&nbsp;</span>
+
Floating point variables can be of the single or double data type.
 
+
</div>
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  

Revision as of 20:36, 15 June 2015

Contents

Action

Returns the Arctangent of a single in radians.

 

 

Syntax

var = ATN( single )

 

 

Remarks

Var

A float variable that is assigned with the arctangent of variable float.

float

The float variable to get the arctangent of.

 

All trig functions work with radians. Use deg2rad and rad2deg to convert between radians and angles.

Floating point variables can be of the single or double data type.

 

See Also

RAD2DEG , DEG2RAD , COS , SIN , TAN , ATN2

 

 

Example


$regfile = "m48def.dat" ' specify the used micro
$crystal = 8000000 ' used crystal frequency
$baud = 19200 ' use baud rate
$hwstack = 32 ' default use 32 for the hardware stack
$swstack = 10 ' default use 10 for the SW stack
$framesize = 40 ' default use 40 for the frame space
 
Config Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
 
 
Dim S As Single , X As Single
S = Atn(1) * 4
Print S ' prints 3.141593 PI
End

Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language