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

MathGroup Archive 2008

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

Search the Archive

Re: Subscript Bug?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90178] Re: Subscript Bug?
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Tue, 1 Jul 2008 07:01:48 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <200806290936.FAA29888@smc.vnet.net> <g4a722$931$1@smc.vnet.net>

bsyehuda at gmail.com wrote:

> I couldn't repeat this. I use version 6.0.2 over linux (64 bits version)
> the output is as expected
> yehuda

Yehuda,

Could you confirm that, starting from a brand new Mathematica session 
(that is fresh kernel, no additional packages, and no Dynamics and the 
like loaded), the first time you evaluate

     Subscript[H, 1] = 110; Subscript[H, 2] = 90;
     H = Subscript[H, 1] + Subscript[H, 2];
     Tanh[Subscript[H, 1]]

you get

     Tanh[110]

rather than

     Tanh[200 ]
             1
?

If nothing else interferes with the evaluation of the above expressions 
and still get Tanh[110] as the result of the first time evaluation, that 
would implies that the main loop on Linux behaves differently (and in an 
unexpected way) than on the other platforms, i.e. the evaluation process 
is buggy!

Regards,
-- Jean-Marc


> On Sun, Jun 29, 2008 at 12:36 PM, Aaron Fude <aaronfude at gmail.com> wrote:
> 
>> Hi,
>>
>> I have this code in a cell:
>>
>> Subscript[H, 1] = 110; Subscript[H, 2] = 90;
>> H = Subscript[H, 1] + Subscript[H, 2];
>> Tanh[Subscript[H, 1]]
>>
>> The first time I execute the cell, I get
>>
>> Tanh[Subscript[200, 1]]
>>
>> which of course is nonsense.
>>
>> A second execution, yields the correct answer:
>>
>> Tanh[110]
>>
>> Is this a feature that I don't understand or a bug?
>>
>>
> 



  • Prev by Date: Re: Re: Mouse focus in Mathematica
  • Next by Date: Re: Bug of Units-package in combination with DynamicModule
  • Previous by thread: Re: Re: Subscript Bug?
  • Next by thread: Re: Re: Subscript Bug?