Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.3K Views
|
5 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Unable to add decimals/adding text?

Posted 11 years ago
Attachments:
POSTED BY: James Davis
5 Replies

Each Cell in a Mathematica notebook is, behind the scenes, a Cell[...] expression (and the notebook is a Notebook[...] expression), consistent with the usual Mathematica Mantra "Everything is an Expression". In a notebook, to see a Cell's Cell expression, select its cell bracket and use the Cell/ShowExpression menu item to see the expression. (Be sure to choose that menu item to show the formatted cell when you are done). Edit such Cell expressions carefully, it's quite easy to introduce syntax errors when doing this. But, this is a long winded way to say that this is how I found your problem and fixed it ;-)

I assumed that this was probably the sort of issue you were having from your detail of the symptoms.

POSTED BY: David Reiss

That is indeed what it was. I went through the old file and pulled out the Cell[""] bits and it produced the same results. Thank you for this bit of information.

POSTED BY: James Davis

For some reason, in part of your code an invisible embedded Cell[""] expression was placed internally and is now part of those expressions. This may have happened for a variety of reasons... however I am attaching a fixed version of your notebook where I removed them.

It seems to work fine now.... (I removed the unnecessary Quit[] statement at the beginning of the notebook but you can put it back if you wish).

Attachments:
POSTED BY: David Reiss

Thanks! How did you go about removing them? Scanning through the fixed version it appears to be the same as the broken version I initially had with the exception of some formatting changes.

POSTED BY: James Davis
In[45]:= 45.8654 (0.05 - 0.00012397) + 0.260788

Out[45]= 2.54837
POSTED BY: S M Blinder
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard