On 12/18/2009 10:07:29 AM, dmg wrote:
== What do you mean by "stack"...nested vectors ? If so, yes
You can't return a list of items by typing, for example:
a,b,c,d
If you want to return multiple items, you have to do so via a vector. You can do this by, as in the 'working' version, creating an array
[a,b,c,d]
or by using the 'stack' function, that joins the items together to form a vector (note that stack is primarily meant for joining 2 or more vectors or equal-column arrays)
stack(a,b,c,d)
Also note that Mathcad vectors must all have the same dimension, hence the division by m to get s,up&down to stack with i )
Stuart