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

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:mul (alias: "x*y")}}
Compute the inverse of ''x''.
;Usage:
:{|class="keinrahmen"
|'''<code>inv(''x<sub>scalar</sub>)</code>'''
|-
|'''<code>inv(''x<sub>matrix</sub>)</code>'''
|-
|}
;Result: The result has the same type as the argument ''x'' and is the inverse of ''x''. The argument ''x'' must be a scalar or a square matrix.
;Note: This function can be used as alias for the operator *, which do not implement the dyadic product. both arguments ''x'' and ''y'' are vectors, the dyadic product is computed, otherwise the operator * is applied to ''x'' and ''y''.
;See also: [[Programmer_Guide/Command_Reference/EVAL/trn|trn]], [[Programmer_Guide/Command_Reference/EVAL/mul|mul]], [[Programmer_Guide/Command_Reference/EVAL/complex arithmetic#special functions|ctrn]]
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
=====mul=====
=====mul=====

Revision as of 14:54, 8 April 2011

Compute the inverse of x.

Usage
inv(xscalar)
inv(xmatrix)
Result
The result has the same type as the argument x and is the inverse of x. The argument x must be a scalar or a square matrix.
Note
This function can be used as alias for the operator *, which do not implement the dyadic product. both arguments x and y are vectors, the dyadic product is computed, otherwise the operator * is applied to x and y.
See also
trn, mul, ctrn

<function list>


Warning: Display title "mul" overrides earlier display title "mul (alias: "x*y")".

mul

Calculate the dyadic product of xv and yv.

Usage:

mul(xv,yv)

Return Type:

matrix - (nrow(xv) x nrow(yv))

Notes:

Note that if one of the arguments is not a vector, then x * y is calculated.

Navigation menu

Personal tools