Signals and Systems

Signals and Systems - Example of use of SMath for signals and systems analysis - Messages

#1 Posted: 5/29/2012 4:14:49 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Hi, this is a snippet for numerical inverse Laplace transform. You can find time response of a system expresed in F(s) form.

enjoy


Inverse numerical Laplace


Download it here

Regards,

Oscar Campo
3 users liked this post
kmihaylovich 5/30/2012 2:28:00 AM, Davide Carpi 5/29/2012 6:13:00 PM, Radovan Omorjan 5/30/2012 3:00:00 AM
#2 Posted: 5/30/2012 3:09:26 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello Oscar,

Thank you for this example

By the way, I find very interesting that you defined an expression in this way an then plot it:

Function<->variable

ft() looks like a function, but it is not.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 users liked this post
Davide Carpi 5/30/2012 7:29:00 AM
#3 Posted: 5/30/2012 7:10:43 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Yes, it's something that I found accidentally. The statement ft(F(s)) appear as a function, but it's a matrix!

Oscar
#4 Posted: 5/30/2012 3:18:43 PM
Basile

Basile

8 likes in 172 posts.

Group: User

Hello,

I tried to open it using the latest SMath.
I get an error message in the last FOR loop: "Function not defined"

Thanks,
Basile
#5 Posted: 5/30/2012 3:53:17 PM
Andrey Ivashov

Andrey Ivashov

2271 likes in 3734 posts.

Group: Super Administrator

[USERLINK]Basile[/USERLINK], you need to define a function to work with as shown in the first message.

Wrote

numerical inverse Laplace Transform



Regards.
#6 Posted: 5/31/2012 9:25:59 PM
Basile

Basile

8 likes in 172 posts.

Group: User

Thank you Andrey,

Basile
#7 Posted: 5/31/2012 9:28:48 PM
Basile

Basile

8 likes in 172 posts.

Group: User

Oscar,

Which Numerical Inverse Laplace Transform do you use?
Any reference?

Thank you,
Basile
#8 Posted: 6/1/2012 9:24:33 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Hi Basile,
The method is based on work of J. Valsa and L. Brancik: Approximate Formulae for Numerical Inversion of Laplace Transforms, Int. Journal of Numerical Modelling: Electronic Networks, Devices and Fields, Vol. 11, (1998), pp. 153-166

Regards,

Oscar
1 users liked this post
Davide Carpi 6/1/2012 9:32:00 AM
#9 Posted: 6/1/2012 5:29:58 PM
Basile

Basile

8 likes in 172 posts.

Group: User

Oscar,

Thank you,

Basile
#10 Posted: 6/4/2012 7:47:33 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Bode Diagram Revisited.
This is a function for graphing the Bode plot of a system. Please plot the magnitude and phase on a diferent graph each one, deactivate "grid" and "axis" for a better visualization of logarithmic grid.

Bode Plot

Download it here: MyBode3.sm (30 KiB) downloaded 61 time(s).
#11 Posted: 6/5/2012 3:02:37 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Root Locus Snippet

This is a snippet for plotting Root Locus of a sistem. The input is the denominator of coefficients of transfer function:

rlocus

Download it here

Oscar
#12 Posted: 8/25/2017 1:22:41 PM
Leandro de Oliveira

Leandro de Oliveira

0 likes in 1 posts.

Group: User

The file seems to be locked, I can't put a equation.
#13 Posted: 8/25/2017 5:02:19 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

.. here is the Bode Plot.

Bode plot.sm (27 KiB) downloaded 213 time(s).
2 users liked this post
Viktor 11/15/2017 7:30:00 PM, Oscar Campo 8/27/2017 3:21:00 AM
#14 Posted: 8/25/2017 6:44:35 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

The file seems to be locked, I can't put a equation.



Open the file in SMath Studio and then go to File > Properties > File Attributes and uncheck Read-only. This attribute is required when the worksheet is designed to be a snippet.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#15 Posted: 8/26/2017 9:01:49 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Hi, this is a snippet for numerical inverse Laplace transform. You can find time response of a system expressed in F(s) form. enjoy


=================
This 5 years old document does not work 6179.
Here is the Maple companion.

Laplace 5Years.PNG

#16 Posted: 8/27/2017 10:46:55 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote


=================
This 5 years old document does not work 6179.



Only a very little detail to fix this 5 years old document: declare F(s) and change the last line on snippet:

ft( "F(s" ) = augment(t,ft)

for

ft() = augment(t,ft)

InvLaplace update.png




You can download the updated version from here

1 users liked this post
Davide Carpi 8/28/2017 1:28:00 PM
#17 Posted: 8/28/2017 11:01:53 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

You can download the updated version from here



... that's only several pages long of HTML code.
No work sheet. Best is to upload WS in the forum.
For "Laplace stuff", better use maple(,) as show above.

Cheers, Jean

#18 Posted: 8/28/2017 11:32:53 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote


... that's only several pages long of HTML code.
No work sheet. Best is to upload WS in the forum.



Use "save as"

Quote


For "Laplace stuff", better use maple(,) as show above.



Yes, and also it’s possible use f(t)=Maxima(ilt(F(s),s,t)) but it’s interesting show how you can implement inverse Laplace of a function in SMath.
P.D. The symbolic form of f(t) obtained from ilt() it’s more “elegant” than maple version
1 users liked this post
Davide Carpi 8/28/2017 1:28:00 PM
#19 Posted: 8/28/2017 1:04:34 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Win 7 does not have the virtue to save HTML "save as" *.sm
OK: no work sheet => nothing to see. Tanks anyway.

Cheers, Jean
#20 Posted: 8/28/2017 1:24:42 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

Win 7 does not have the virtue to save HTML "save as" *.sm



You can if you use firefox (with chrome you have to change the extension manually from .txt to .sm);

However I've edited the link, now it downloads the file, whatever is your favorite browser.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
Oscar Campo 8/28/2017 2:23:00 PM
  • New Posts New Posts
  • No New Posts No New Posts