Resolviendo ecuaciones diferenciales ordinarias con Symbolic Math Toolbox™ (Matlab) y SymPy (Python)

Q4 Social Sciences Revista Mexicana De Fisica E Pub Date : 2023-06-28 DOI:10.31349/revmexfis.20.020209
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.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
用符号数学工具箱求解常微分方程™ (MATLAB)和Sympy(Python)
本文展示了使用两个符号包(Symbol-MathToolbox)获得的常微分方程(EDOS)的解™ (Matlab)和SymPy(Python)。通过一组传统常微分方程课程的例子,逐步解释了获得两个包的解的基本说明。包括用可分离变量、线性方程、不确定系数、参数变化、幂级数、拉普拉斯变换和数值解等方法求解的微分方程。通过用这些软件包进行的符号计算,可以获得线性系统的解,以及微分方程或非线性微分方程系统的方向场的可视化。这项工作的主要贡献在于为读者提供了一份实用指南,使他能够在符号数学工具箱的帮助下开始研究微分方程™ 或SymPy。在教学和/或学习实践中使用这些计算工具的好处之一是,它表明了符号或数值计算的使用如何节省我们在繁琐计算中的工作量;重点关注重要的思想和概念,如:数学模型与物理模型之间的关系,解的渐近行为和定性分析。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Revista Mexicana De Fisica E
Revista Mexicana De Fisica E 社会科学-科学史与科学哲学
CiteScore
0.80
自引率
0.00%
发文量
14
审稿时长
>12 weeks
期刊介绍: 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 physi­cal science. Instrumentation. Articles reporting original contribu­tions 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.
期刊最新文献
Image charges from boundary value problems On Feynman's paradox The problem of the body rotating on a frictionless table, attached to a hanging body, solved partially by conservation theorems Analysis of understanding of physics concepts through problem solving units review in free fall motion materials Revisiting Max Planck’s idea: Planck’s Law, Casimir force and Planck’s constant
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1