find numerical answers using Matlab

Solve for the variable y in terms of t, for given initial condition.
dy/dt= 20 cos 5t +8 ; y(0)=0
What is the value of y for t=4?

5 件のコメント

John D'Errico
John D'Errico 2022 年 7 月 24 日
Since this is clearly your homework assignment, surely you are the one who should be doing the work? Or, should we send the answer directly to your teacher? If so, then please provide their address and name, so we could contact them directly, to get credit for the work. Would your teacher not be happy to be informed of your request to have someone else do your work for you?
Razzaq
Razzaq 2022 年 7 月 24 日
編集済み: Razzaq 2022 年 7 月 24 日
yep, this is my homework,
I have many questions like this one, so i posted this question here , to get help from experts, if you can help me in this question I will be able to solve the remaining questions at my own.
And if you don't know how to solve and please don't do loose talk in the comment section.
Thanks.
Torsten
Torsten 2022 年 7 月 24 日
If you cannot integrate this simple function on your own, MATLAB's "int" should help:
Steven Lord
Steven Lord 2022 年 7 月 24 日
Since this is a homework assignment, if you show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
John D'Errico
John D'Errico 2022 年 7 月 24 日
Experts won't do your homework for you. You won't learn anything if we do it for you, except how to get someone to do your work for you. And your teacher will rarely be happy with your posting your assignments on Answers. This is not a loose comment, but one pointing out why it is inappropriate to post your homework assignments online with no effort made.

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

 採用された回答

Walter Roberson
Walter Roberson 2022 年 7 月 23 日

1 投票

Integrate the right hand side with respect to t, remembering the constant. Solve for the constant given the initial condition. Evaluate the expression at the given t

3 件のコメント

Razzaq
Razzaq 2022 年 7 月 24 日
kindly solve it on matlab,and share the code
Walter Roberson
Walter Roberson 2022 年 7 月 24 日
Use Symbolic toolbox syms and int() and subs() . You will not need solve()
Walter Roberson
Walter Roberson 2022 年 7 月 25 日
syms t C
dydt = 19 * tan(7*t) + 11 * sin(8*t) + 11
dydt = 
y = int(dydt)
y = 
C = -subs(y, t, 0)
C = 
y = simplify(y + C)
y = 
simplify(subs(y, t, 9))
ans = 
%crosscheck boundary
subs(y, t, 0)
ans = 
0

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by