Variable assignment bug?

Variable assignment bug? - Messages

#1 Posted: 3/1/2010 10:01:23 AM
andrei

andrei

0 likes in 3 posts.

Group: User

Hello,

first of all - great job on this very useful and important program! I've been trying it out recently and am very impressed by the progress you're making. Keep up the good work!

I have a question about an interesting issue happening after an assignment to a variable. As you can see in the screen shot below, I've assigned the variable CGE and value, and was surprised to see it get a completely different value after this:



I'm using the latest version 0.87 on win xp pro sp3.

I've tried moving the assignment around, or changing the numbers, but the problem is still there. Assigning something in between to the same variable overrides this and set a correct value:



Could it be that the particular assignment used is somehow corrupted?

Regards,
andrei
#2 Posted: 3/1/2010 10:13:10 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello Andrei,

Can not reproduce this. Could you please upload the particular file as well, or try to delete CGI variable and repeat the assignment of it.

Regards,
Radovan

EDIT: I'v made it once, but do not know how yet. The same result like yours. It was something with 5.*10^-7. But can not get it again ????

I've found it:
First input this (use decimal point-here is comma as decimal separator)
[MATH]CGE←5,10^{-7}[/MATH]
[MATH]CGE=1,1143*10^{-5}[/MATH]
Then insert multiplication (*) between . and 10
[MATH]CGE←5,*10^{-7}[/MATH]
[MATH]CGE=1,28*10^{-12}[/MATH]
Then delete decimal point
[MATH]CGE←5*10^{-7}[/MATH]
[MATH]CGE=1,28*10^{-12}[/MATH]
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Posted: 3/1/2010 10:35:25 AM
andrei

andrei

0 likes in 3 posts.

Group: User

Hello Radovan,

Thank you for the quick reply.

Deleting the original assignment and making a new one solves the problem.

Here's the file on SpeedShare:

http://www.speedshare.org/download.php?id=5B2FD90811

Regards,
andrei
#4 Posted: 3/1/2010 10:40:40 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

You are welcome Andrei,

I think something was happening here (a bug maybe). Anyway, the quick remedy in these cases is to delete the expression and try it again.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#5 Posted: 3/1/2010 11:53:54 AM
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: Super Administrator

Hello, Andrei.

Radovan is right, it is because of invisible brackets appeared in the expression after some steps you've performed with it.


I have couple of reports like this, so I'll fix this soon. Thanks.

Regards.
#6 Posted: 3/1/2010 12:20:36 PM
andrei

andrei

0 likes in 3 posts.

Group: User

OK. Thanks a lot for the quick reply!

Regards,
andrei
  • New Posts New Posts
  • No New Posts No New Posts