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: [mg39300] Re: Compile message suppression
  • From: "Steve Luttrell" <luttrell at _removemefirst_westmal.demon.co.uk>
  • Date: Mon, 10 Feb 2003 01:07:35 -0500 (EST)
  • References: <b2599j$hqu$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

You can turn a specific message off by using Off[symbol::tag], where
"symbol::tag" is the string that appears at the start of the error message
you want to suppress.

For instance try dividing by zero:

    1/0

    \!\(Power::"infy" \(\(:\)\(\ \)\)
    "Infinite expression \!\(1\/0\) encountered."\)

    ComplexInfinity

Suppress the error message by doing this:

    Off[Power::"infy"]

Then try dividing by zero again.

    1/0

    ComplexInfinity

--
Steve Luttrell
West Malvern, UK

"Y.A.Tesiram" <yas at pcomm.hfi.unimelb.edu.au> wrote in message
news:b2599j$hqu$1 at smc.vnet.net...
> Dear Mathgroup,
>
> 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?
>
> Thanks
> Yas
>
>
>




  • Prev by Date: Re: smoothing functions to avoid artifacts in graphs
  • Next by Date: RE: smoothing functions to avoid artifacts in graphs
  • Previous by thread: Compile message suppression
  • Next by thread: Re: Compile message suppression