Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Mathematica 8.0 Compile[] bug

  • To: mathgroup at smc.vnet.net
  • Subject: [mg114521] Mathematica 8.0 Compile[] bug
  • From: green tea <cetech07 at gmail.com>
  • Date: Mon, 6 Dec 2010 06:14:32 -0500 (EST)

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