Changes between Initial Version and Version 1 of Ticket #5624, comment 4
- Timestamp:
- 2019-09-03T12:41:31Z (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5624, comment 4
initial v1 4 4 > @Karim, @lochel, @AnHeuermann, do you have any comments on this? 5 5 6 A correct approach for the compiler would be do formulate the if expression implicitly (this is actually already done in the backend):6 A correct approach for the compiler would be to formulate the if expression implicitly (this is actually already done in the backend): 7 7 {{{ 8 8 0.0 = if time < 1000 then der(x) - 10 else x + 5; 9 9 }}} 10 now we can see that the second branch is structurally singular in the sense of index reduction and has to be d erived (however this should be detected, seems quite complicated for more difficult if equations):10 now 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): 11 11 {{{ 12 12 0.0 = if time < 1000 then der(x) - 10 else der(x);