フィルターのクリア

Numerical integration of an ODE?

12 ビュー (過去 30 日間)
KLETECH MOTORSPORTS
KLETECH MOTORSPORTS 2020 年 11 月 14 日
回答済み: Priyanka Rai 2020 年 11 月 18 日
Hey! I'm trying to integrate the following 2nd order ODE:
from time t=0 to any random time, say t=50 seconds
ω and A are constants.
I need to integrate the above equation twice, numerically. Any idea how i can do this and what method i'll be using?
thanks
  2 件のコメント
John D'Errico
John D'Errico 2020 年 11 月 14 日
Read the help for ODE45. You will find examples in there.
doc ode45
riccardo
riccardo 2020 年 11 月 16 日
Why numerically ?
If A and w are constants, x(t) = A*sin(w*t) is surely the primitive (plus initial conditions if not zero).

サインインしてコメントする。

回答 (1 件)

Priyanka Rai
Priyanka Rai 2020 年 11 月 18 日
To be able to integrate 2nd Order ODE numerically you can use the following methods, based on your use case:
  1. If function f is to be integrated, then for definite integral you can use
int(f, a, b)
2. Numerically evaluate double integral
q = integral2(fun,xmin,xmax,ymin,ymax)
approximates the integral of the function z = fun(x,y) over the planar region xminxxmax and ymin(x)yymax(x).
Numerical integration functions can approximate the value of an integral whether or not the functional expression is known.When you know how to evaluate the function, you can use integral to calculate integrals with specified bounds.

カテゴリ

Help Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by