user questions



Hello,

I'm declaring vectors from R? by a macro:

  r3vect(x) := for i in x do i :: [ i[1], i[2], i[3] ];

This works mostly. It does not work for r3vect([x]):

  part: invalid index of list or matrix.

A vector named ?x? can not be declared this way. Why is this?

After ?r3vect([a]);? a is a vector: [a?, a?, a?], but the elements can
not be declared real:

  (%i5) declare(a[1], real);

  declare: improper argument: a?
  
Is there another (better) way to declare vectors from R??

	MfG
	bmg

-- 
?Des is v?llig wurscht, was heut beschlos- | M G Berberich
 sen wird: I bin sowieso dagegn!?          | berberic at fmi.uni-passau.de
(SPD-Stadtrat Kurt Schindler; Regensburg)  | www.fmi.uni-passau.de/~berberic