Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Bug: symbol recreates itself suddenly

  • To: mathgroup at smc.vnet.net
  • Subject: [mg86882] Re: Bug: symbol recreates itself suddenly
  • From: Bhuvanesh <lalu_bhatt at yahoo.com>
  • Date: Tue, 25 Mar 2008 01:15:26 -0500 (EST)

There are some things that are not forbidden by the manual, but still, doing them might be a bad idea. For example, making definitions such as the following isn't a good idea:

Sign[x]^=1;

Instead one should use the assumptions mechanism:

$Assumptions = Re[x] > 0 && Im[x] == 0;

I agree that the documentation could be improved for such cases.

Bhuvanesh,
Wolfram Research


  • Prev by Date: Re: Mathlink: How do I pass arbitrary data from Mathematica to C?
  • Next by Date: Match Pairs of Numbers
  • Previous by thread: Re: Re: Bug: symbol recreates itself suddenly
  • Next by thread: Compiled function slowdown