Changes between Initial Version and Version 1 of Ticket #5624, comment 4


Ignore:
Timestamp:
2019-09-03T12:41:31Z (5 years ago)
Author:
Karim Adbdelhak

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5624, comment 4

    initial v1  
    44> @Karim, @lochel, @AnHeuermann, do you have any comments on this?
    55
    6 A correct approach for the compiler would be do formulate the if expression implicitly (this is actually already done in the backend):
     6A correct approach for the compiler would be to formulate the if expression implicitly (this is actually already done in the backend):
    77{{{
    880.0 = if time < 1000 then der(x) - 10 else x + 5;
    99}}}
    10 now we can see that the second branch is structurally singular in the sense of index reduction and has to be derived (however this should be detected, seems quite complicated for more difficult if equations):
     10now we can see that the second branch is structurally singular in the sense of index reduction and has to be differentiated (however this should be detected, seems quite complicated for more difficult if equations):
    1111{{{
    12120.0 = if time < 1000 then der(x) - 10 else der(x);