Re: tag Times protected??
- To: mathgroup at smc.vnet.net
- Subject: [mg13451] Re: [mg13419] tag Times protected??
- From: Carl Woll <carlw at fermi.phys.washington.edu>
- Date: Fri, 24 Jul 1998 01:45:37 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Hi Jordan, I can't reproduce the behavior with the example you provide, although I have also occasionally had similar things happen to me. As an aid to figuring out your problem, could you post the expression which Mathematica is interpreting when this behavior occurs. That is, put the cursor in the cell which has a problem, and then select Format | Show Expression from the menu and post the resulting expression. Invisible characters or Interpretation Boxes will then show, and these may explain what's going on. Carl Woll Dept of Physics U of Washington On Thu, 23 Jul 1998, Jordan Milev wrote: > I am writing with an annoying behavior in Mathematica, which I hope has > a logical explanation. I have found that sometimes when I write two > consecutive lines which display output, I get the message "tag Times > protected" > > Say I write: > > pe[j] = pate[] > ph[j] = path[] > peh[j] = pateh[] > > where pate, path, and pateh are lists. So this is merely an assignment > exercise, but Mathematica somehow thinks that I've written instead: > > pe[j] = pate[]ph[j] = path[]peh[j] = pateh[] > > i.e. I'm trying to multiply the three. Of course, this is an error, so > Mathematica gives a warning message. But, if I write the same > expression as: > > pe[j] = pate[]; > ph[j] = path[]; > peh[j] = pateh[]; > > the problem disappears, and Mathematica doesn't want to multiply the > three. > > Does anyone know why this is happening, or more importantly, how to > prevent this behavior? I'd appreciate any help. > > Jordan > >