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

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
Create a vector by concatenating the arguments (scalars and vectors).
Create a vector by concatenating the arguments (scalars and vectors).


=====Usage:=====
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
Returns the smallest value found in the arguments.


<code>vv(<var>x1</var>, <var>x2</var>,...)</code>
;Usage: </code>vv(x1</var> {, <var>x2</var> {, ...}})</code>'''
 
:;<var>x1</var>, <var>x2</var>, ...: each argument can be a scalar or a vector
=====Result:=====
;Result: The concatenated vector.
 
;See also: [[Programmer_Guide/Command_Reference/EVAL/vvget|vvget]], [[Programmer_Guide/Command_Reference/EVAL/vvset|vvset]], [[Programmer_Guide/Command_Reference/EVAL/vvcat|vvcat]], [[Programmer_Guide/Command_Reference/EVAL/vmcol|vmcol]], [[Programmer_Guide/Command_Reference/EVAL/vmrow|vmrow]], [[Programmer_Guide/Command_Reference/EVAL/vsubn|vsubn]], [[Programmer_Guide/Command_Reference/EVAL/vsubc|vsubc]],
The result is { <var>x1</var> , <var>x2</var> , ... }
 
=====Return Type:=====
 
vector
 
=====Examples:=====


Example:
<pre>
<pre>
#v := eval vv(1,2,4,8,16)
#a := eval vv(1,2,4,8,16)
showitem $#v
// -> #a = { 1 , 2 , 4 , 8 , 16 }
#b := eval vv(0 , $#a , 32)
// -> #b = { 0 , 1 , 2 , 4 , 8 , 16 , 32 }
</pre>
</pre>
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]

Revision as of 13:25, 4 April 2011

Create a vector by concatenating the arguments (scalars and vectors).


Returns the smallest value found in the arguments.

Usage
vv(x1 {, x2 {, ...}})
x1, x2, ...
each argument can be a scalar or a vector
Result
The concatenated vector.
See also
vvget, vvset, vvcat, vmcol, vmrow, vsubn, vsubc,

Example:

#a := eval vv(1,2,4,8,16)
// -> #a = { 1 , 2 , 4 , 8 , 16 }
#b := eval vv(0 , $#a , 32)
// -> #b = { 0 , 1 , 2 , 4 , 8 , 16 , 32 }

<function list>

Navigation menu

Personal tools