Strange Syntax problem
- To: mathgroup at smc.vnet.net
- Subject: [mg64231] Strange Syntax problem
- From: "KvS" <keesvanschaik at gmail.com>
- Date: Tue, 7 Feb 2006 03:36:00 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi all, I'm new here, have some experience with Mathematica, currently running version 5.1 under Windows XP Prof. I've written a reasonably large piece of code (about 50 lines) in a single cell. It contains some comments troughout and a few loops. If I run this piece of code the way it was saved it all works fine. But if I now simply try to add a line somewhere in the code, a simple Print-statement e.g., I suddenly get the error Syntax::bktmcp : Expression "(Log[s])^m" has no closing ")". This expression (Log[s])^m is in the last part of the code and the line I added is close to the beginning so they're relatively far apart. It doesn't make any sense because even if I comment out the added line by adding "(*" and "*)" around them (so that I have effectively only added comment to the original code) the same error keeps coming up. If I then reopen the original saved file and add a Print-statement close to the end of the code it does run... How could this have happened, is anybode familiar with this behaviour? I wouldn't mind rewriting the code if the notebook somehow became corrupt only if I knew for sure it wouldn't happen again... Thanks in advance! - Kees