필터 지우기
필터 지우기

It's a matter of differential calculation. I'm getting a formula error. Please help me

조회 수: 1 (최근 30일)
This is the problem
Using Symbolic Math, calculate and state the first, second, and third derivatives of the function y for x
syms x y n
y= 5*(x+3)^4+6*sin(8*x)+9*exp^2*x
It's my mathematical formula
Insufficient input arguments for exp. That's the error
What's the problem?
  댓글 수: 1
Torsten
Torsten 2023년 9월 18일
I thought from your last question you would have learned how to input the exponential of an expression ?

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

채택된 답변

Dyuman Joshi
Dyuman Joshi 2023년 9월 18일
편집: Dyuman Joshi 2023년 9월 18일
That's not how the syntax for exp works - It was explained in the previous question of yours as well.
syms x y n
y= 5*(x+3)^4+6*sin(8*x)+9*exp(2*x)
y = 
For the other task, use diff.
Refer to the documentation page (the link) for more info.
As stated in a previous questoin of yours, you should invest some time and take the free introductory course: MATLAB Onramp Tutorial to learn the essentials of MATLAB.
  댓글 수: 2
kubel
kubel 2023년 9월 18일
I'm sorry, I don't think I understand exactly. I'll think about it again Thank you.
Steven Lord
Steven Lord 2023년 9월 18일
The statement exp^2*x attempts to evaluate the exp function with no input arguments, square the result, and mutiply that result by x. But there is no syntax for the exp function that accepts no input arguments listed on that documentation page. MATLAB doesn't know what to do with the way you called exp and so it throws an error.
The syntax Dyuman Joshi uesd, exp(2*x), multiplies 2 and x and passes the result to exp as an input argument. There is a 1-input argument syntax listed on the exp documentation page.

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by