Problem creating an equation
조회 수: 4 (최근 30일)
이전 댓글 표시
I am trying to create
f=e^(cos(t))+-2cos(4t)-(sin(t/12))^5
is the below the same thing or do I have to change it?
f=exp^(cos(t))-2*cos(4*t)-(sin(t/12))^5;
댓글 수: 0
채택된 답변
Walter Roberson
2015년 12월 10일
f = exp(cos(t)) - 2*cos(4*t) - sin(t/12).^5;
The change to exp() without the ^ is necessary. The change to .^5 instead of ^5 is not necessary if t is a scalar but it is necessary if t is not a scalar.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Partial Differential Equation Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!