What's wrong with Math.Matrix

郭雪松 <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
[PikeBox work@x64:~]
$ cat t2.pike
void main()
{
        object s1=Math.Matrix( ({ ({ 0.001185, 0.0003731, -0.002029}),
                                ({ 0.0003731, 0.02593, 0.0258}),
                                ({ -0.002029, 0.0258, 0.03065}) }) );
        object xx0=Math.Matrix( ({ ({ -37.35, -3.449, 0.5093}) }) );
        /* [-37.35, -3.449, 0.5093]*[0.001185, 0.0003731, -0.002029;0.0003731, 0.02593, 0.0258;-0.002029, 0.0258, 0.03065] octave say =[-0.0465799  -0.0902279   0.0024090] */
        write("%O",xx0*s1);
}
[PikeBox work@x64:~]
$ pike t2.pike
Incompatible matrices.
Unknown program:
    `*(Math.Matrix( ({ ({ 0.001185, 0.0003731, -0.002029}),
                    ({ 0.0003731, 0.02593, 0.0258}),
                    ({ -0.002029, 0.0258, 0.03065}) }) ))
pike/8.0.28/lib/modules/___Math.so:1:
    Math.Matrix( ({ ({ -37.35, -3.449, 0.5093}) }) )->`*(@0=Math.Matrix( ({ ({
     0.001185, 0.0003731, -0.002029}),
                    ({ 0.0003731, 0.02593, 0.0258}),
                    ({ -0.002029, 0.0258, 0.03065}) }) ))
t2.pike:8: /main()->main()


Guo Xue Song
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.