MathGroup Archive 2004

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

Search the Archive

Off[] won't always eliminate the message

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49121] Off[] won't always eliminate the message
  • From: Alain Cochard <alain at geophysik.uni-muenchen.de>
  • Date: Fri, 2 Jul 2004 02:01:21 -0400 (EDT)
  • Reply-to: alain at geophysik.uni-muenchen.de
  • Sender: owner-wri-mathgroup at wolfram.com

I don't understand why the second example below doesn't work as I
expect. Any idea?  Thanks.
AC


(1) Working example.

    In[1]:= Sqrt[1,3]  (* first see what message is generated *)

    Sqrt::argx: Sqrt called with 2 arguments; 1 argument is expected.

    Out[1]= Sqrt[1, 3]

---------------------

    In[1]:= Off[Sqrt::argx] ; Sqrt[1,3]  (* now eliminate it *)

    Out[1]= Sqrt[1, 3]  (* no message --- OK *)


(2) Nonworking example.

    In[1]:= min=1  (* first see what message is generated *)

    General::spell1: 
       Possible spelling error: new symbol name "min"
         is similar to existing symbol "Min".

    Out[1]= 1

-------------------------------------

    In[1]:= Off[General::spell1] ; min=1  (* now eliminate it *)

    General::spell1: 
       Possible spelling error: new symbol name "min"
         is similar to existing symbol "Min".

    Out[1]= 1  (* still a message.  why? *) 


However, it works if using 2 instructions:


    In[1]:= Off[General::spell1] ; 

    In[2]:= min=1  

    Out[2]= 1   (* no message *)

But it's important for me to be able to use only one instruction.
Plus, I'm curious...


  • Prev by Date: Re: extracting powers and coefficients from a polynomial
  • Next by Date: RE: Re: Appropriate codec for playing Mathematica generated .wav files
  • Previous by thread: Re: extracting powers and coefficients from a polynomial
  • Next by thread: Re: Bug in FromDate