Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2929 > unrolled thread

Re: Error in Compile

Started by"Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com>
First post2011-06-04 10:20 +0000
Last post2011-06-04 10:20 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Error in Compile "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> - 2011-06-04 10:20 +0000

#2929 — Re: Error in Compile

From"Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com>
Date2011-06-04 10:20 +0000
SubjectRe: Error in Compile
Message-ID<isd0ss$1nn$1@smc.vnet.net>
It compiles without a problem on my Mathematica 8/Win7-64. 

from the Compile doc page:

"Compile handles numerical functions, matrix operations, procedural programming constructs, list manipulation functions, and functional programming constructs, etc. " 

Does NMinimize belong to this list?


"Ordinary Mathematica code can be called from within compiled code. Results obtained from the Mathematica code are assumed to be approximate real numbers, unless specified otherwise by the third argument of Compile. " 

NMinimize doesn't return reals, but a list containing a number and a list with a rule.

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web