필터 지우기
필터 지우기

Make a code for these equation and make it right to run it

조회 수: 4 (최근 30일)
George
George 2023년 5월 24일
답변: Srivardhan 2023년 6월 2일
Make a code for these equation:(1+x^2)y"-4y'+6y=0 and y"-xy'-x^2y=0 and y"-xy=0 make a code for these 3 equation
  댓글 수: 2
Dyuman Joshi
Dyuman Joshi 2023년 5월 24일
MATLAB Answers doesn't entertain Homework questions.
If you want help from us, show what you have attempted and ask a specific question where you are having trouble.
If you need help to start with the coding, I suggest you take the free MATLAB Onramp tutorial to learn the essentials of MATLAB.
Dea M Turashvili
Dea M Turashvili 2023년 5월 24일
type that exact question into ChatGPT

댓글을 달려면 로그인하십시오.

답변 (1개)

Srivardhan
Srivardhan 2023년 6월 2일
Hi George,
As per my understanding, you would like to write the given Second order differential equations in MATLAB.
MATLAB represents the variables and functions in differential equations using symbolic scalar variables and functions. Assuming x, y(x) as symbolic scalar variable and function, also we represent y’(x) and y” (x) using the inbuilt “diff” function.
Here is the code you can check:
syms x y(x)
eqn = (1+x^2)*diff(y,x,2) - 4*diff(y,x) + 6*y == 0;
eqn1 = diff(y,x,2) - x*diff(y,x) - x^2*y == 0;
eqn2 = diff(y,x,2) - x*y == 0;
eqn, eqn1, eqn2 represents the mentioned 2nd order differential equations.
For further reference, please check out the links to learn more about writing the MATLAB code of differential equations.
I hope this resolves the issue you were facing.

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by