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

**URL:** <https://community.wolfram.com/t/transform-a-function-into-a-certain-form-that-is-easier-to-read/10785>\
**Category:** Questions\
**Created:** [July 4, 2017, 12:06pm UTC](https://community.wolfram.com/t/transform-a-function-into-a-certain-form-that-is-easier-to-read/10785 "2017-07-04T12:06:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slehm](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@slehm](https://community.wolfram.com/u/slehm)\
**Post date:** [July 4, 2017, 12:06pm UTC](https://community.wolfram.com/t/transform-a-function-into-a-certain-form-that-is-easier-to-read/10785/1 "2017-07-04T12:06:54Z")

</div>

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]))

```

![Bild1.png](https://global.discourse-cdn.com/wolfram/original/3X/4/3/43705e815caceed4f638a48796dd1c54d535a017.png)

I would like to bring this into the form

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

```

 ![Bild2.png](https://global.discourse-cdn.com/wolfram/original/2X/c/c94d467f2d38b635b983ced07cc4f97ae9c9c502.png)

In general terms, the form looks like this

![Bild3.png](https://global.discourse-cdn.com/wolfram/original/2X/d/d6e2abacf9c52f069f4e8bbf809628848be1ecd1.png)

Thanks for your help  
Sebastian

---

<div class="post-metadata">

**Author:** ![sblinder](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sblinder/32/17861_2.png) [@sblinder](https://community.wolfram.com/u/sblinder)\
**Post date:** [July 4, 2017, 6:38pm UTC](https://community.wolfram.com/t/transform-a-function-into-a-certain-form-that-is-easier-to-read/10785/2 "2017-07-04T18:38:41Z")

</div>

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)

```
