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.

Why is cos(u) giving me a result bigger than 1.

Fernando J. Pena Cantu

Please login with a confirmed email address before reporting spam

Hi,

I am doing the contour plot of one of my solutions. There contour plot is cos(u) where u is my soltuion. The problem is that the results of show that cos(u) can be larger than 1 in certian areas. Which is impossible regardless of the value of u. What is going on? I have attached a picture.

My version of comsol is 5.2



1 Reply Last Post 19 juin 2020, 01:23 UTC−4
Gunnar Andersson COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 19 juin 2020, 01:23 UTC−4

real(cos(u)) can be larger than 1 if u has a nonzero imaginary part. You can check if this is the case by creating a surface plot of imag(u).

real(cos(u)) can be larger than 1 if u has a nonzero imaginary part. You can check if this is the case by creating a surface plot of imag(u).

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.