Programmer Guide/Command Reference/EVAL/mul: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
|} | |} | ||
;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. | ;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''. | ;Note: This function can be used as alias for the [[Programmer_Guide/Command_Reference/EVAL#Operators|operator *]], which do not implement the dyadic product. both arguments ''x'' and ''y'' are vectors, the dyadic product is computed, otherwise the [[Programmer_Guide/Command_Reference/EVAL#Operators|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]] | ;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, cmulv]], | ||
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]] | [[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]] |
Revision as of 14:56, 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, cmulv,
Warning: Display title "mul" overrides earlier display title "mul (alias: "x*y")".
Contents
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.