Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1995

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

Search the Archive

Help using Compile with Solve

  • To: mathgroup at
  • Subject: [mg867] Help using Compile with Solve
  • From: Bill Harbaugh <harbaugh at>
  • Date: Thu, 27 Apr 1995 01:39:34 -0400
  • Organization: University of Wisconsin, Madison

I want to create a compiled function that uses Solve, like this


CompiledFunction[{x, y}, Solve[x + y == z, z], -CompiledCode-]


   Expression z should be a machine-size real number.
   External evaluation error at instruction 5; proceeding with
     uncompiled evaluation.

{{z -> 2}}

As you can see, this doesn't work as a compiled function.  
It seems like I need to tell Compile that z is also real, but 
I'm not sure how to do that.

Thanks, Bill

  • Prev by Date: Re: Extracting data points from Plot[]
  • Next by Date: Tick marks on Axes AND Frame?
  • Previous by thread: Re: matrix evaluation
  • Next by thread: Re: Help using Compile with Solve