symbolic processing

2 views (last 30 days)
Dwyane  Wade
Dwyane Wade on 15 Aug 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)

Accepted Answer

Paulo Silva
Paulo Silva on 15 Aug 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.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!