Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Trigonometric functions

Please login with a confirmed email address before reporting spam

How can I set trigonometric functions to give me the correct value from an angle given in degrees, I mean, if I'm using the expression STL*cos(73.7), with STL=524 mm and 73.7 is an angle given in degrees, the value is suppose to be 147.069, but in COMSOL it gives me 66.591 because it's taking the angle value as rad, but even if I do a conversion to my angle to rad it doesn't give me the correct result

2 Replies Last Post 02.07.2014, 07:32 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 02.07.2014, 04:18 GMT-4
Maybe you can write STL*cos(73.7[deg])? I have not tried myself.
Maybe you can write STL*cos(73.7[deg])? I have not tried myself.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 02.07.2014, 07:32 GMT-4
You may also try STL*cos(73.7/180*pi).
You may also try STL*cos(73.7/180*pi).

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.