MathGroup Archive 2003

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

Search the Archive

Re: Compile message suppression

  • To: mathgroup at
  • Subject: [mg39300] Re: Compile message suppression
  • From: "Steve Luttrell" <luttrell at>
  • Date: Mon, 10 Feb 2003 01:07:35 -0500 (EST)
  • References: <b2599j$hqu$>
  • Sender: owner-wri-mathgroup at

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:


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


Suppress the error message by doing this:


Then try dividing by zero again.



Steve Luttrell
West Malvern, UK

"Y.A.Tesiram" <yas at> wrote in message
news:b2599j$hqu$1 at
> 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