cyclic definition with 'ans'
Bug #129443 reported by
Alberto Simões
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NumExp Core |
Fix Committed
|
High
|
David Boucher |
Bug Description
::> 4451+11340
ans = 15791
::> 170.07*ln[ans]
ans = 170.06999999999999 * ln[ans]
::> ans
oops ;)
Basically, variables should not be replaced UNLESS it is the 'ans' variable ;)
Changed in numexp-core: | |
status: | New → Fix Committed |
To post a comment you must log in.
I'm not at home before wednesday so I can't see the problem (no linux box here), and there is something I don't understand.
You say "variables should not be replaced UNLESS it is the 'ans' variable" but I'm not agree.
If ans=15791, 170.07*ln[ans] should return at less (since we are here in simplification mode) 170.07*ln[15791]
and so, no recursive assignment !! And more, since a part of the expression is a floating point number, we can evaluate the all expression.
Could you tell me what's happening with the following example ?
::> z=4451+11340
::> z=170.07*ln[z]
::> z
Do you have the same "oops", an error with a "recursive assignment" or the good result ?
Thanks.