I can make sense out off some of it and some of it is intractable.Can you make any sense out of this?
Or, can you give me correct version of it?
Hi
The discussion was about the properties of continuous-time and discrete-time systems. There was no specific problem statement. For instance, **broken link removed** in the textbook the author is simply deriving the formulae for RC circuit where the 'RC circuit' is looked on more as a continuous-time system. I don't need the derivation of the expressions. You can just state the correct version of the formulae, that's all. Thank you.
Regards
PG
Which formula? The statement is too vague. When you say "state the formula for an RC circuit", I can think of more than 10 different formulas I could derive and state as being very relevant for the circuit.
And, Vout and Vc are the same, so it should be clear now.
My best guess is that you are trying to make a discrete time version of the first order RC system. Presumably, you are sampling with period T and would like your sampled system to match the response of the real system.
Thank you very much, Steve.
I need to go through it several times before asking any follow-on questions.
Best wishes
PG
I think you have learned how to solve a differential equation of this form, where C is a constant, so I will leave out the details..
[latex] \tau\cdot \frac{y(t)}{dt}+y(t)=C [/latex]
If we consider an initial value for y(t) at time t=nT, and want the solution for time t>nT, the solution is as follows.
[latex] y(t)=(y(nT)-C)\cdot \exp(\frac{-(t-nT)}{\tau})+C [/latex]
[There are two sets of data here to be compared...one for T=0.1 and one for T=0.01]
[Also, when T is infinitesimal the true solutions always match the approximate solutions for any time t]
[Time t runs from top to bottom, from t=0 to t=2 seconds with increments of 0.1 seconds, and with RC=1 and Vin=1]
T=0.100000
True Approx PErr
0.095163 0.090909 0.044697
0.181269 0.173554 0.042564
0.259182 0.248685 0.040499
0.329680 0.316987 0.038502
0.393469 0.379079 0.036574
0.451188 0.435526 0.034713
0.503415 0.486842 0.032921
0.550671 0.533493 0.031195
0.593430 0.575902 0.029537
0.632121 0.614457 0.027944
0.667129 0.649506 0.026416
0.698806 0.681369 0.024952
0.727468 0.710336 0.023551
0.753403 0.736669 0.022212
0.776870 0.760608 0.020933
0.798103 0.782371 0.019713
0.817316 0.802155 0.018550
0.834701 0.820141 0.017443
0.850431 0.836492 0.016391
0.864665 0.851356 0.015391
T=0.010000
True Approx PErr
0.095163 0.094713 0.004724
0.181269 0.180456 0.004489
0.259182 0.258077 0.004262
0.329680 0.328347 0.004044
0.393469 0.391961 0.003833
0.451188 0.449550 0.003630
0.503415 0.501685 0.003436
0.550671 0.548882 0.003249
0.593430 0.591609 0.003069
0.632121 0.630289 0.002898
0.667129 0.665305 0.002734
0.698806 0.697005 0.002577
0.727468 0.725703 0.002427
0.753403 0.751682 0.002284
0.776870 0.775201 0.002148
0.798103 0.796493 0.002018
0.817316 0.815767 0.001895
0.834701 0.833217 0.001778
0.850431 0.849013 0.001668
0.864665 0.863314 0.001563
By the way, why do you think the green expression is OK, but the yellow is not. It seems to me that they are similar but the yellow has the values of the a and b coefficients worked out.
I was wondering how you got this expression:
[latex] y(t)=(y(nT)-C)\cdot \exp(\frac{-(t-nT)}{\tau})+C [/latex]
So, if you don't mind then please let me know. Thank you.
[PErr is the percent error using that method, PErr(z) is the percent error using the z transform plus method, both using the same time step T]
T=0.100000
True Approx PErr zTransform PErr(z)
0.095163 0.090909 0.044697 0.095238 -0.000794
0.181269 0.173554 0.042564 0.181406 -0.000754
0.259182 0.248685 0.040499 0.259367 -0.000716
0.329680 0.316987 0.038502 0.329904 -0.000679
0.393469 0.379079 0.036574 0.393722 -0.000643
0.451188 0.435526 0.034713 0.451463 -0.000609
0.503415 0.486842 0.032921 0.503705 -0.000576
0.550671 0.533493 0.031195 0.550971 -0.000545
0.593430 0.575902 0.029537 0.593736 -0.000514
0.632121 0.614457 0.027944 0.632427 -0.000486
0.667129 0.649506 0.026416 0.667434 -0.000458
0.698806 0.681369 0.024952 0.699107 -0.000431
0.727468 0.710336 0.023551 0.727764 -0.000406
0.753403 0.736669 0.022212 0.753691 -0.000382
0.776870 0.760608 0.020933 0.777149 -0.000359
0.798103 0.782371 0.019713 0.798373 -0.000338
0.817316 0.802155 0.018550 0.817575 -0.000317
0.834701 0.820141 0.017443 0.834949 -0.000297
0.850431 0.836492 0.016391 0.850668 -0.000279
0.864665 0.851356 0.015391 0.864890 -0.000261
T=0.050000
True Approx PErr zTransform PErr(z)
0.095163 0.092971 0.023035 0.095181 -0.000198
0.181269 0.177298 0.021911 0.181303 -0.000188
0.259182 0.253785 0.020824 0.259228 -0.000179
0.329680 0.323161 0.019775 0.329736 -0.000169
0.393469 0.386087 0.018763 0.393533 -0.000161
0.451188 0.443163 0.017788 0.451257 -0.000152
0.503415 0.494932 0.016850 0.503487 -0.000144
0.550671 0.541888 0.015949 0.550746 -0.000136
0.593430 0.584479 0.015083 0.593507 -0.000128
0.632121 0.623111 0.014254 0.632197 -0.000121
0.667129 0.658150 0.013459 0.667205 -0.000114
0.698806 0.689932 0.012698 0.698881 -0.000108
0.727468 0.718759 0.011972 0.727542 -0.000101
0.753403 0.744906 0.011278 0.753475 -0.000095
0.776870 0.768623 0.010616 0.776940 -0.000090
0.798103 0.790134 0.009986 0.798171 -0.000084
0.817316 0.809645 0.009386 0.817381 -0.000079
0.834701 0.827343 0.008816 0.834763 -0.000074
0.850431 0.843395 0.008274 0.850491 -0.000070
0.864665 0.857954 0.007761 0.864721 -0.000065
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?