>> From: Jonathan Dentch
I need to create an array of values. However, Maple
won't store the values when I use the variable q[].
C:=array(1..11,1..1,[[500.],[q[1]],[q[2]],[q[3]],[q[4]],[q[5]],[q[6]],[q[7]],[q[
8]],[q[9]],[123.23]]);
[ 500. ]
[ ]
[ q[1] ]
[ ]
[ q[2] ]
[ ]
[ q[3] ]
[ ]
[ q[4] ]
[ ]
C := [ q[5] ]
[ ]
[ q[6] ]
[ ]
[ q[7] ]
[ ]
[ q[8] ]
[ ]
[ q[9] ]
[ ]
[123.23]
> q:=seq(100./(360*i*0.25),i=1..9);
q := 1.111111111, .5555555555, .3703703703,
.2777777778,.2222222222, .1851851852, .1587301587,
.1388888889,.1234567901
> print(C);
[ 500. ]
[ ]
[ q[1] ]
[ ]
[ q[2] ]
[ ]
[ q[3] ]
[ ]
[ q[4] ]
[ ]
[ q[5] ]
[ ]
[ q[6] ]
[ ]
[ q[7] ]
[ ]
[ q[8] ]
[ ]
[ q[9] ]
[ ]
[123.23]
I wish C to be all numerics, not variables. Please
advise.
Thanks,
Jonathan Dentch
Rensselaer at Hartford
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
|