Changes between Initial Version and Version 2 of Ticket #1469


Ignore:
Timestamp:
2015-03-19T12:56:08Z (10 years ago)
Author:
Per Östlund
Comment:

The first example now gives an error and fails in r25153, instead of giving an error and continuing. The second example still behaves the same. It could be fixed by removing the x/x = 1 rule in ExpressionSimplify, but I'm not sure what that will affect. Interesting to note is that Dymola says r = 1.0 in both cases though.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1469

    • Property Cc sjoelund.se, → sjoelund.se
    • Property ComponentBackend
  • Ticket #1469 – Description

    initial v2  
    1 {{{class A
     1{{{#!mo
     2class A
    23  constant Real x = 0;
    34  Real r = x/x;
    4 end A;}}}
    5 
     5end A;
     6}}}
    67Gives
    78{{{r = 0.0}}}
    89Both wrong result, and no assertion added.
    9 
    10 {{{class A
     10{{{#!mo
     11class A
    1112  Real x = 0;
    1213  Real r = x/x;
    13 end A;}}}
    14 
     14end A;
     15}}}
    1516Gives
    1617{{{r = 1.0}}}