Programmer Guide/Command Reference/EVAL/absv: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
=====absv=====
Compute the absolute value of every element of the argument <var>x</var>.
;Usage: <code>absv(<var>x</var>)</code>
;Result: The result <var>r</var> of this function has always the same type as the argument <var>x</var>. Each element <var>r</var><sub>i,j</sub> of the result, is set to the absolute value of the element <var>x</var><sub>i,j</sub> of the argument.
;See also: [[../abs|abs]]


Compute the absolute values for every element in the vector. I.e. w[i] = abs(v[i])
[[../#Functions|<function list>]]
 
=====Usage:=====
 
<code>absv(<var>v</var>)</code>
 
=====Result:=====
 
A vector with the same number of elements as <var>v</var>.
 
=====Return Type:=====
 
vector

Latest revision as of 10:05, 21 April 2011

Compute the absolute value of every element of the argument x.

Usage
absv(x)
Result
The result r of this function has always the same type as the argument x. Each element ri,j of the result, is set to the absolute value of the element xi,j of the argument.
See also
abs

<function list>

Navigation menu

Personal tools