Gerardo Ortigoza, Roberto Iñaki Ponce de la Cruz Herrera
{"title":"Resolviendo ecuaciones diferenciales ordinarias con Symbolic Math Toolbox™ (Matlab) y SymPy (Python)","authors":"Gerardo Ortigoza, Roberto Iñaki Ponce de la Cruz Herrera","doi":"10.31349/revmexfis.20.020209","DOIUrl":null,"url":null,"abstract":"This paper shows solutions of ordinary differential equations (EDOS) obtained by using two symbolic packages: Symbolic Math Toolbox™ (Matlab) and SymPy (Python). The basic instructions to obtain solutions of both packages are explained step by step, through a group of examples from a traditional ordinary differential equations course. Differential equations that are solved with methods such as: separable variables, linear equations, indeterminate coefficients, variation of parameters, power series, Laplace transform, and numerical solutions are included. By means of the symbolic computation carried out with these packages it is possible to obtain the solution of linear systems, as well as the visualization of the direction field of a differential equation or of a non-linear system of differential equations. The main contribution of this work consists in providing the reader with a practical guide that allows him to start the study of differential equations assisted by Symbolic Math Toolbox™ or SymPy. Among the benefits of using these computational tools in teaching and/or learning practices, it is shown how the use of symbolic or numerical computation saves us effort in the computation of tedious calculations; focusing attention on important ideas and concepts such as: the relationship between the mathematical model and its physical counterpart, asymptotic behavior and qualitative analysis of the solutions. \n","PeriodicalId":49600,"journal":{"name":"Revista Mexicana De Fisica E","volume":" ","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2023-06-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Revista Mexicana De Fisica E","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.31349/revmexfis.20.020209","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"Social Sciences","Score":null,"Total":0}
引用次数: 0
Abstract
This paper shows solutions of ordinary differential equations (EDOS) obtained by using two symbolic packages: Symbolic Math Toolbox™ (Matlab) and SymPy (Python). The basic instructions to obtain solutions of both packages are explained step by step, through a group of examples from a traditional ordinary differential equations course. Differential equations that are solved with methods such as: separable variables, linear equations, indeterminate coefficients, variation of parameters, power series, Laplace transform, and numerical solutions are included. By means of the symbolic computation carried out with these packages it is possible to obtain the solution of linear systems, as well as the visualization of the direction field of a differential equation or of a non-linear system of differential equations. The main contribution of this work consists in providing the reader with a practical guide that allows him to start the study of differential equations assisted by Symbolic Math Toolbox™ or SymPy. Among the benefits of using these computational tools in teaching and/or learning practices, it is shown how the use of symbolic or numerical computation saves us effort in the computation of tedious calculations; focusing attention on important ideas and concepts such as: the relationship between the mathematical model and its physical counterpart, asymptotic behavior and qualitative analysis of the solutions.
期刊介绍:
The Revista Mexicana de Física (Rev. Mex. Fis.) publishes original papers of interest to our readers from the physical science com unity. Language may be English or Spanish, however, given the nature of our readers, English is recommended. Articles are classified as follows:
Research. Articles reporting original results in physical science.
Instrumentation. Articles reporting original contributions on design and construction of scientific instruments. They should present new instruments and techniques oriented to physical science problems solutions. They must also report measurements performed with the described instrument.
Reviews. Critical surveys of specific physical science topics in which recent published information is analyzed and discussed. They should be accessible to physics graduate students and non specialists, and provide valuable bibliography to the specialist.
Comments. Short papers (four pages maximum) that assess critically papers by others authors previously published in the Revista Mexicana de Física. A comment should state clearly to which paper it refers.