Message Boards Message Boards


[✓] Calculate the inverse Z transform with exact precision?

Posted 2 years ago
5 Replies
4 Total Likes

Hello All. I hope you are doing well.

I need to perform an inverse Z transform

enter image description here

As you can see I dont get a clean output. what are that dots there?

For example

6.-5n Whats that?

5 Replies
 In[1]  = 10/3.
Out[1] = 0.3333

By adding a decimal point to a number, you force Mathematica to treat it as approximate. These approximate numbers will be machine precision by default. If the expression contains a decimal number,then the result is also a decimal number.

I refer to the book for more information:1.Mathematica Cookbook and 2.Mathematica Navigator


InverseZTransform[-0.9568/(z - 4.321*10^-2), z, n] // Rationalize

(* -299 2^(6 - 5 n) 5^(1 - 5 n) 4321^(-1 + n) UnitStep[-1 + n] *)


InverseZTransform[-(598/625)/(z - 4321/100000), z, n]

(* -299 2^(6 - 5 n) 5^(1 - 5 n) 4321^(-1 + n) UnitStep[-1 + n] *)
Posted 2 years ago

Thanks a lot

There are dots in the input so is it really a surprise to see them in the output?

Posted 2 years ago

But what number its 6.?? It suppose to be 6.0? and .5 it suppose to be 0.5?

Yes, these follow the usual rules and conventions of decimal notation. That is to say, there are equivalent ways to display these, and the one in use as default output form in the Wolfram Language displays with the fewest digits possible.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract