Message Boards Message Boards

0
|
502 Views
|
5 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Combine equations to get single feedback equation

Posted 2 months ago

If I have the two equations y=ax and x=u-y where y is the output and u is the input, how can I get Mathematica to combine these two equations to get the single equation, y = (a/(1+a))u?
Thanks.

POSTED BY: Roger B
5 Replies
Posted 2 months ago

Wait. That didn't work for me. I got,

In[31]:= Solve[Eliminate[{y == a x, x == u - y}, x], y]

During evaluation of In[31]:= $RecursionLimit::reclim2: Recursion depth of 1024 exceeded during evaluation of u-y.

Out[31]= Hold[Solve[Eliminate[{y == a x, x == u - y}, x], y]]
POSTED BY: Roger B
Posted 2 months ago

There is a hidden cache of previous assignments that some users don't know about.

Had you previously assigned any values or functions to any of those names?

Try restarting Mathematica fresh, make certain you don't have any prior assignments

and then do only

Solve[Eliminate[{y==a x,x==u-y},x],y]

and see what you get

POSTED BY: Bill Nelson
Posted 2 months ago

Ok. That worked. Thanks.

POSTED BY: Roger B
Posted 2 months ago

Thank you.

POSTED BY: Roger B
Posted 2 months ago
Solve[Eliminate[{y==a x,x==u-y},x],y]

{{y -> (a*u)/(1 + a)}}
POSTED BY: Bill Nelson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract