Azzera filtri
Azzera filtri

symbolic processing

3 visualizzazioni (ultimi 30 giorni)
Dwyane  Wade
Dwyane Wade il 15 Ago 2011
Hi there I have a problem and it is under Symbolic Processing topic.
How do I evaluate these expressions in terms of x?
1.) tan(2x-45degrees)
2.) sin(30degrees-3x)

Risposta accettata

Paulo Silva
Paulo Silva il 15 Ago 2011
syms x
f1=tan(2*x-45) %no tand in my symbolic toolbox so use tan and convert values
f2=sin(30-3*x)
xx=2 %point where you wish to evaluate the expressions
subs(f1,x,xx)
subs(f2,x,xx)
I already told you about the conversions between rad and degrees so please don't ask it again, edit my answer code so it does exactly what you want.
Please make your best efforts in order to find the solutions before asking us, read the documentation.
PS: Please check your previous questions before creating new ones, accept the answer that you think it's the best one.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by