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
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
=====absv=====
Compute the absolute value of every element of the argument <var>x</var>.


Compute the absolute values for every element in the vector. I.e. w[i] = abs(v[i])
;Usage: '''<code>absv(<var>x</var>)</code>'''


=====Usage:=====
;Result: The result <var>y</var> of this function has always the same type as the argument <var>x</var>. Each element <var>y[i,j]</var> of the result, is set to the absolute value of the element <var>x[i,j]</var> of the argument.
 
<code>absv(<var>v</var>)</code>
;See also: [[Programmer_Guide/Command_Reference/EVAL/abs|abs]]
 
=====Result:=====
 
A vector with the same number of elements as <var>v</var>.
 
=====Return Type:=====
 
vector

Revision as of 14:13, 1 April 2011

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

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

Navigation menu

Personal tools