[Scilab-users] Question about the infamous dot

Adrien Vogt-Schilb vogt at centre-cired.fr
Fri Oct 19 16:56:46 CEST 2012


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 08:14, Melvyn Drag wrote:
> 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!
>
> Mel
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20121019/1fa608d7/attachment.htm>


More information about the users mailing list