By applying the Laplace transform to ( 2), we obtain Let us apply the Laplace transform to equation ( 2). Let us assume that initial conditions are and. We perform the tests using the following differential equation The approach that is used for comparison is based on the Laplace transform. The two approaches should produce results that match. The idea is to compare this approach with another approach for computing the analytical solution. The result is shown in the figure below.įinally, let us verify that this approach produces accurate results. ![]() First, we choose the plotting interval, and then similarly to the MATLAB function plot(), we can use the function to plot the solution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |