symbolic processing

3 次查看(过去 30 天)
Dwyane  Wade
Dwyane Wade 2011-8-15
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)

采纳的回答

Paulo Silva
Paulo Silva 2011-8-15
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Numbers and Precision 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by