Bug SS-1256
1 vote

Problems with operator priority when transforming equations

Created by Martin Kraska on 1/16/2015 7:10 PM Last Updated by Martin Kraska on 9/3/2018 1:26 PM
%
 (hrs)
Logged: 0   (hrs)

 Description

When evaluating expressions, then sometimes required brackets are missing. This leads to wrong results even if optimization is set to None.

In the given example I try to perform equivalent transformations of equations. This is possible with Maxima, but not straightforward due to operator priority issues in SMath Studio. This is not only an issue of symbolic evaluation. Also, with optimization None, wrong results are obtained.

It is not ok, that one has to wrap a single name in brackets in order to get a correct expression after evaluation.

    Martin Kraska (Monday, September 3, 2018 1:26 PM) #

Update:

    Martin Kraska (Thursday, July 13, 2017 1:29 AM) #

Update: 0.98.6398

The definitions of G and H look identically, but they are different. Here, clearly parentheses are missingl in the display as well as in the preprocessing (expressions resulting from expansion of symbols should be treated as if they were in parentheses)