Problem creating an equation
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Krish Desai
am 10 Dez. 2015
Beantwortet: Walter Roberson
am 10 Dez. 2015
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Dez. 2015
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Partial Differential Equation Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!