Programmer Guide/Command Reference/EVAL/abs: 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}}}}
=====abs=====
Compute the absolute value of <var>x</var>.


The absolute value of <var>x</var>.
;Usage:
 
:<code>abs(<var>x</var>)</code>
=====Usage:=====
 
<code>abs(<var>x</var>)</code>


<code>det(<var>x</var>)</code>
<code>det(<var>x</var>)</code>
Line 12: Line 9:
<code>|<var>x</var>|</code>
<code>|<var>x</var>|</code>


=====Result:=====
===Result===
 
The result of this function is always a scalar, which is:
The absolute value of <var>x</var> if <var>x</var> is a scalar, the length of the vector is <var>x</var> is a vector, or the determinant if <var>x</var> is a matrix.
:* the absolute value of the number <var>x</var>  
:* the length of the vector <var>x</var>
:* the determinant of the matrix <var>x</var>


=====Return Type:=====
===Synonyms===
The function '''det(''x'')''' and the special ''bracket'' form '''|''x''|''' can be used as synonyms for this functions.


scalar
===See also===

Revision as of 12:46, 1 April 2011

Compute the absolute value of x.

Usage
abs(x)

det(x)

|x|

Result

The result of this function is always a scalar, which is:

  • the absolute value of the number x
  • the length of the vector x
  • the determinant of the matrix x

Synonyms

The function det(x) and the special bracket form |x| can be used as synonyms for this functions.

See also

Navigation menu

Personal tools