ACOS/de

From MCS Wiki AVR
< ACOS(Difference between revisions)
Jump to: navigation, search
(Anmerkungen)
(Undo revision 4371 by Galahat (talk))
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
= <span class="f_Header">Funktion</span> =
+
== (**COPIED FROM ENGLISH PAGE**) === <span class="f_Header">Action</span> =
  
Gibt den Arkuskosinus eines Singles im Bogenmaß zurück.
+
Returns the arccosine of a single in radians.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
Line 15: Line 15:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">Anmerkungen</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;">
 
{| 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;"
Line 23: Line 23:
  
 
| valign="top" width="100%" style="width: 480px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 480px; border: 1px solid rgb(0, 0, 0);" |  
Eine Gleitkomma-Variable (Single/Double),der der ACOS der Variablen x zugewiesen wird.
+
A floating point variable such as single or double, that is assigned with the ACOS of variable x.
 +
 
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| valign="top" width="10%" style="width: 50px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="10%" style="width: 50px; border: 1px solid rgb(0, 0, 0);" |  
Line 29: Line 30:
  
 
| valign="top" width="100%" style="width: 480px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 480px; border: 1px solid rgb(0, 0, 0);" |  
Der Gleitkommawert von dem der ACOS berechnet wird.  
+
The float to get the ACOS of. Input is valid from –1 to +1 and returns
Gültiger Wertebereich ist –1 bis +1, Rückgabe p bis 0.
+
 
 +
p to 0.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>

Latest revision as of 12:19, 6 March 2013

Contents

= (**COPIED FROM ENGLISH PAGE**) === Action

Returns the arccosine of a single in radians.

 

 

Syntax

var = ACOS( x )

 

 

Remarks

Var

A floating point variable such as single or double, that is assigned with the ACOS of variable x.

X

The float to get the ACOS of. Input is valid from –1 to +1 and returns

p to 0.

 

If Input is < -1 than p and input is > 1 than 0 will returned.

 

If Input is cause of rounding effect in float-operations a little bit over 1 or -1, the value for 1.0 (-1.0) will be returned. This is the reason to give the value of the limit-point back, if Input is beyond limit. Generally the user have to take care, that Input to this function lies within –1 to +1.

 

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

 

 

See Also

RAD2DEG , DEG2RAD , COS , SIN , TAN , ATN , ASIN , 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
x= 0.5 : S = Acos(x)
Print S
End

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