Preference of outputting sine function
Show older comments
Hello, can anybody help me with this:
sympref('FloatingPointOutput',true);
syms theta
F=2*sind(2*theta)
--------------------------
F =
2*sin(0.0349*theta)
--------------------------
I want the sine function to be sine in degrees in the output, I don't want the program to automatically convert it to radians.. Can anyone help ?
Thanks !!
5 Comments
Matt J
on 25 Dec 2020
Isn't 2*sin(0.0349*theta) equivalent to 2*sind(2*theta)? I don't see the problem.
Ahmad Madkhanah
on 25 Dec 2020
Matt J
on 25 Dec 2020
Is it just an aesthetic preference? What would be the practical benefit of having things expressed in terms of sind?
Ahmad Madkhanah
on 25 Dec 2020
Ahmad Madkhanah
on 25 Dec 2020
Answers (0)
Categories
Find more on Operations on Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!