x=-3*i V1=[2:1:10] V2=[-1.5:1.5:6] format rat for i=1:10 V3(i)=1/(i^2) end V=[V1 V2 V3] Vinv=V(11:-1:5)
Standard input is empty
x = 20.086 ans = -1.0018e+04 x = -0 - 3i ans = 1.9665 + 10.4561i V1 = 2 3 4 5 6 7 8 9 10 V2 = -1.50000 0.00000 1.50000 3.00000 4.50000 6.00000 V3 = 1 V3 = 1 1/4 V3 = 1 1/4 1/9 V3 = 1 1/4 1/9 1/16 V3 = 1 1/4 1/9 1/16 1/25 V3 = 1 1/4 1/9 1/16 1/25 1/36 V3 = 1 1/4 1/9 1/16 1/25 1/36 1/49 V3 = Columns 1 through 7: 1 1/4 1/9 1/16 1/25 1/36 1/49 Column 8: 1/64 V3 = Columns 1 through 7: 1 1/4 1/9 1/16 1/25 1/36 1/49 Columns 8 and 9: 1/64 1/81 V3 = Columns 1 through 7: 1 1/4 1/9 1/16 1/25 1/36 1/49 Columns 8 through 10: 1/64 1/81 1/100 V = Columns 1 through 7: 2 3 4 5 6 7 8 Columns 8 through 14: 9 10 -3/2 0 3/2 3 9/2 Columns 15 through 21: 6 1 1/4 1/9 1/16 1/25 1/36 Columns 22 through 25: 1/49 1/64 1/81 1/100 Vinv = 0 -3/2 10 9 8 7 6
parse error: syntax error >>> Vtier=V(size(V) div 2:1:size(V)) ^