[Scilab-users] Question about the infamous dot

2012-10-19 Thread Melvyn Drag
In one of the exercises that came with the scilab documentation there is a question that says: Why does: 1./[2 3 4] give the strange result 0.0689 0.1034 0.1379 Instead of 0.5 0.333 0.25 I can't seem to come up with an answer. Thanks for the help!

Re: [Scilab-users] Question about the infamous dot

2012-10-19 Thread Adrien Vogt-Schilb
hI This is interpreted as 1.0/[2 3 4] (yes it is combersome) you want to use: 1.0./[2 3 4] or 1 ./[2 3 4] //mind the space before the dot you can also use [2 3 4].^-1 note that [2 3 4]*[0.0689;0.1034;0.1379] = 1 also note the orientation of each matrix (row or column) On 19/10/2012