atan2
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{DavinciWiki_Function| | {{DavinciWiki_Function| | ||
− | Computes the trigonometric arc-tangent given the delta y and delta x values. | + | Computes the trigonometric arc-tangent given the delta y and delta x values. This function also deals with data from 0 to 2pi and will not fail when the arc-tangent function becomes undefined. Consequently [[atan]] only deals with data from -pi/2 to pi/2 and fails when the arc-tangent function becomes undefined. |
| | | | ||
Parameters: A variable containing the change in y and another containing the change in x of any numeric data type or organization. | Parameters: A variable containing the change in y and another containing the change in x of any numeric data type or organization. | ||
Line 6: | Line 6: | ||
Return Value: An array of type double and organization of the inputs containing the arctan of the inputs. | Return Value: An array of type double and organization of the inputs containing the arctan of the inputs. | ||
| | | | ||
− | atan2(deltay, deltax) | + | [[Syntax]]: atan2(object = deltay, object = deltax) |
| | | | ||
dv> deltay | dv> deltay | ||
Line 22: | Line 22: | ||
| | | | ||
| | | | ||
+ | *[[atan]] | ||
+ | *[[atand]] | ||
+ | *[[tan]] | ||
+ | *[[tand]] | ||
| | | | ||
|}} | |}} | ||
Line 27: | Line 31: | ||
[[category:Functions]] | [[category:Functions]] | ||
[[category:Math]] | [[category:Math]] | ||
+ | [[category:64-bit]] |
Latest revision as of 11:46, 6 July 2009
Contents: Description, Arguments, Usage, Examples, Related Functions Supported Under Version: >1.69 Current Davinci Version: 2.27 64-bit Safe: Yes
Description Computes the trigonometric arc-tangent given the delta y and delta x values. This function also deals with data from 0 to 2pi and will not fail when the arc-tangent function becomes undefined. Consequently atan only deals with data from -pi/2 to pi/2 and fails when the arc-tangent function becomes undefined.
Arguments and Return Values Parameters: A variable containing the change in y and another containing the change in x of any numeric data type or organization. Return Value: An array of type double and organization of the inputs containing the arctan of the inputs.
Usage Syntax: atan2(object = deltay, object = deltax)
Examples dv> deltay 4x1x1 array of int, bsq format [16 bytes] 1 2 3 4 dv> deltax 4x1x1 array of int, bsq format [16 bytes] 6 7 8 9 dv> atan2(deltay,deltax) 4x1x1 array of double, bsq format [32 bytes] 0.165149 0.278300 0.358771 0.418224 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Core Changes Modified On: 07-06-2009 |