Changes between Initial Version and Version 1 of Ticket #2265


Ignore:
Timestamp:
2013-06-27T09:36:47Z (12 years ago)
Author:
Lennart Ochel
Comment:

There is probably no simplify after removing the alias variables?!

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2265

    • Property Cc Jens Frenkel added
  • Ticket #2265 – Description

    initial v1  
    11Simplify missing for {{{der(x1) }}} in
    22
    3 {{{
     3{{{#!mo
    44model missingSimplify
    5 
    6         Real x1(start = 1, fixed = true);
    7         Real x1_dummy;
    8         Real x2(start = 1);
    9         Real x3(start = 1);
     5  Real x1(start = 1, fixed = true);
     6  Real x1_dummy;
     7  Real x2(start = 1);
     8  Real x3(start = 1);
    109equation
    11         x1_dummy = x1;
    12         der(x1) = sin(x1_dummy)/x1 - sin(x1)/x1; /*  != 0 (don't work) */
    13         der(x2) = sin(x1)/x1 - sin(x1)/x1; /* = 0 */
    14         der(x3) = x1_dummy - x1; /*  = 0 */
     10  x1_dummy = x1;
     11  der(x1) = sin(x1_dummy)/x1 - sin(x1)/x1; /*  != 0 (don't work) */
     12  der(x2) = sin(x1)/x1 - sin(x1)/x1; /* = 0 */
     13  der(x3) = x1_dummy - x1; /*  = 0 */
    1514end missingSimplify;
    1615}}}
     
    1817with {{{ der(x2)  = der(x1) }}}. So simplify should work for {{{ der(x1) }}} too.
    1918Here the C code:
    20 {{{
     19{{{#!c
    2120/*
    2221 equation index: 3