Message Boards Message Boards

0
|
6034 Views
|
1 Reply
|
3 Total Likes
View groups...
Share
Share this post:

[?] Transform a function into a certain form that is easier to read?

Posted 7 years ago

I would like to transform a function into a certain form. So I can read the coefficients more easily later. For example, if I have the following function:

G=((z-1)/z)*(((K*z)/(z-1))-K/(z-Exp[-T/TS]))

enter image description here

I would like to bring this into the form

G=((b1*z^-1)/(1+a1*z^-1))

enter image description here

In general terms, the form looks like this

enter image description here

Thanks for your help Sebastian

Try this, with x=1/z

In[1]:= PadeApproximant[(z - 1)/
   z ((K z)/(z - 1) - K/(z - E^(-T/Ts))) /. z -> 1/x, {x, 0, {1, 1}}]

Out[1]= (K - E^(-(T/Ts)) K x)/(1 + E^(-(T/Ts)) (-1 + E^(T/Ts)) x)

or this

In[6]:= PadeApproximant[(z - 1)/
    z ((K z)/(z - 1) - K/(z - E^(-T/Ts))) /. z -> 1/x, {x, 
   0, {1, 1}}] /. x -> z^(-1)

Out[6]= (K - (E^(-(T/Ts)) K)/z)/(1 + (E^(-(T/Ts)) (-1 + E^(T/Ts)))/z)
POSTED BY: S M Blinder
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