MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Mathematica 8.0 Compile[] bug


abc1 =
  Compile[{},
   Module[{a, b, c},
    a = 1.0;
    b = {1.0, 2.0};
    c = {{1.0, 2.0}, {3.0, 4.0}};
    a*b*c
    ]
   ];
abc2 =
  Compile[{},
   Module[{a, b, c},
    a = 1.0;
    b = {1.0, 2.0};
    c = {{1.0, 2.0}, {3.0, 4.0}};
    (a*b)*c
    ]
   ];
abc3 =
  Compile[{},
   Module[{a, b, c},
    a = 1.0;
    b = {1.0, 2.0};
    c = {{1.0, 2.0}, {3.0, 4.0}};
    a*(b*c)
    ]
   ];


In[1]:= $Version
Out[1]= "8.0 for Microsoft Windows (32-bit) (November 7, 2010)"


runtime error with abc1.
but abc2, abc3 are fine.


  • Prev by Date: Re: Re: How to use "Apply" to do differentiation ?
  • Next by Date: Re: WolframAlpha[] give results but not parse!
  • Previous by thread: Question about classes package
  • Next by thread: Re: Mathematica 8.0 Compile[] bug