abs
From DavinciWiki
(Difference between revisions)
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{DavinciWiki_Function| | {{DavinciWiki_Function| | ||
Returns absolute value of input value| | Returns absolute value of input value| | ||
− | Input: An array of any numeric data type or format | + | Input: An array of any numeric data type or format. |
+ | |||
Output: An array of identical type and format of the input| | Output: An array of identical type and format of the input| | ||
+ | [[Syntax]]: abs(obj = VAL)| | ||
+ | dv> a | ||
+ | 3x3x1 array of float, bsq format [36 bytes] | ||
+ | -0.279083 0.111693 -0.0804656 | ||
+ | -0.418438 0.670351 -0.297082 | ||
+ | -0.507225 0.0137189 -0.518543 | ||
+ | |||
+ | dv> b=abs(a) | ||
+ | 3x3x1 array of float, bsq format [36 bytes] | ||
+ | 0.279083 0.111693 0.0804656 | ||
+ | 0.418438 0.670351 0.297082 | ||
+ | 0.507225 0.0137189 0.518543 | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
}} | }} | ||
− | |||
[[category:Functions]] | [[category:Functions]] | ||
+ | [[category:Davinci Core]] | ||
[[category:Math]] | [[category:Math]] |
Latest revision as of 23:48, 3 February 2008
Contents: Description, Arguments, Usage, Examples Supported Under Version: >1.69 Current Davinci Version: 2.27 64-bit Safe: No
Description Returns absolute value of input value
Arguments and Return Values Input: An array of any numeric data type or format. Output: An array of identical type and format of the input
Usage Syntax: abs(obj = VAL)
Examples dv> a 3x3x1 array of float, bsq format [36 bytes] -0.279083 0.111693 -0.0804656 -0.418438 0.670351 -0.297082 -0.507225 0.0137189 -0.518543 dv> b=abs(a) 3x3x1 array of float, bsq format [36 bytes] 0.279083 0.111693 0.0804656 0.418438 0.670351 0.297082 0.507225 0.0137189 0.518543 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Core Changes Modified On: 02-04-2008 |