Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello,
1/T was regarded as matrix inverse, therefore T mast be a square matrix (it is a vector in your case). See the example please. M←mat(3,4,1,2,3,1,1,1,-8,3,3)1/M=mat(3.12,-4.12,-0.12,-2.12,3.12,0.12,0.12,-0.12,-0.12,3,3)M^{-1}=mat(3.12,-4.12,-0.12,-2.12,3.12,0.12,0.12,-0.12,-0.12,3,3) If you want a new vector with the reciprocal values of its elements - you have to use loops. See the example please: T:mat(298,500,1000,1500,2000,2500,3000,7,1) for(i,range(1,length(T)),el(Trec,i)←1/el(T,i)) Trec—mat(1/298,1/500,1/1000,1/1500,1/2000,1/2500,1/3000,7,1)Trec=mat(3.36*10^{-3},2*10^{-3},1*10^{-3},6.67*10^{-4},5*10^{-4},4*10^{-4},3.33*10^{-4},7,1)
Regards, Radovan
|
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |