|
|
 | | From: | Andrew D. Dixon | | Subject: | Expression block question | | Date: | Sat, 11 Dec 2004 11:51:41 -0600 |
|
|
 | Hey everyone,
I've got a model that I'm trying to debug and I've realized that I get into trouble when I use the expression block. Specifically I've got one expression block with two inputs (x2 and x8) and inside the block the expression:
.1*(x8/(0.1+x8))-x2
I think the problem is with the way I'm using parentheses because I've reimplemented the above expression using two expression blocks:
Expression2: 0.1*x8-0.01*x2-0.1*x2*x8 Expression3: .1+x8
and then dividing Expression2 by Expression3 using a MultiplyDivide block. Using the second method I get much better results.
Anyone know what's going on here?
Thanks, Andrew
---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: ptolemy-hackers-request@ptolemy.eecs.berkeley.edu
|
|
|