Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: Compile message suppression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39466] Re: Compile message suppression
  • From: Paul Abbott <paul at physics.uwa.edu.au>
  • Date: Mon, 17 Feb 2003 04:34:34 -0500 (EST)
  • Organization: The University of Western Australia
  • References: <b2599j$hqu$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <b2599j$hqu$1 at smc.vnet.net>,
 "Y.A.Tesiram" <yas at pcomm.hfi.unimelb.edu.au> wrote:

> I have a function defined as
> 
> f = Compile[{{arg1, _Real, 2}, {arg2, _Real}, {arg3, _Real}, Module[ {},
> expr]]
> 
> and I want to use a a non-Real assignment to arg2 called x, Mathematica
> correctly returns a warning message saying that assignment x should be a
> real, but it still returns the correct symbolic expression for f. How do I
> turn the message off or better still  how can I handle this sort of
> assignment a little more thoroughly inside Compile?

Use _Complex instead of _Real for arg2?

Cheers,
Paul



  • Prev by Date: "Editable" cells not editable
  • Next by Date: Re: Derivative help
  • Previous by thread: Re: Compile message suppression
  • Next by thread: Spaces appearing for no reason