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

MathGroup Archive 1997

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

Search the Archive

Re: Question on Positive[x]=True

  • To: mathgroup at smc.vnet.net
  • Subject: [mg7827] Re: [mg7791] Question on Positive[x]=True
  • From: seanross at worldnet.att.net
  • Date: Mon, 14 Jul 1997 03:01:10 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Raya Firsov-Khanin wrote:
> 
> Dear Steve,
> 
> I have the following question.  I want to state that a variable
> x is positive. On page 1170 of the Third edition of The Mathematica book
> it is said that I can do it by making a definition
> 
>     Positive[x] = True
> 
> However, while trying to do it I get a message :
> 
> Set::write: Tag Positive in Positive[x] is Protected
> 
> Any suggestions on how one can make variables positive, negative etc?
> 
> Thanks a lot.
>                   Raya Khanin.
>                   University of Edinburgh

Protected is an attribute which must be removed before modifying.

Try 

Unprotect[Positive];
Positive[x]=True;
Protect[Positive];


  • Prev by Date: Re: Getting image data - how?
  • Next by Date: Re: multiple ListPlot3D help required
  • Previous by thread: Question on Positive[x]=True
  • Next by thread: Re: Question on Positive[x]=True