Variable assignment bug?

Variable assignment bug? - 消息

#1 已发布: 2010/3/1 10:01:23
andrei

andrei

0个赞,共3个帖子。

组: 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 已发布: 2010/3/1 10:13:10
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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 已发布: 2010/3/1 10:35:25
andrei

andrei

0个赞,共3个帖子。

组: 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 已发布: 2010/3/1 10:40:40
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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 已发布: 2010/3/1 11:53:54
Andrey Ivashov

Andrey Ivashov

2,344个赞,共4,057个帖子。

组: 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 已发布: 2010/3/1 12:20:36
andrei

andrei

0个赞,共3个帖子。

组: User

OK. Thanks a lot for the quick reply!

Regards,
andrei
  • 有新帖
  • 无新帖