Group Abstract Group Abstract

Message Boards Message Boards

0
|
14.5K Views
|
4 Replies
|
1 Total Like
View groups...
Share
Share this post:
GROUPS:

atan(y,x) scilab vs. ArcTan[x,y] mathematica

Posted 11 years ago
POSTED BY: afreeka b
4 Replies
Posted 11 years ago

Fantastic,it works. I knew it was a small mistake. I spend so many times on it. FYI, the function Psi is quite long and complicated to write as it is a Thebychev-Fourier serie. Many thanks.

POSTED BY: afreeka b
Posted 11 years ago
POSTED BY: afreeka b

Difficult to say much without complete code e.g. a definition of the actual function psi[t,theta]. My guess is you want to define

r[x_,y_]: Sqrt[x^2 + y^2]
theta[x_,y_]:= ArcTan[x, y]

and then plot ContourPlot[\[Psi][r[x,y],theta[x,y]],....

POSTED BY: Daniel Lichtblau

Need to argument form of ArcTan returns angle values between minus pi and pi. Try

ArcTan[-1,1]

The statement that you are quoting from the documentation is referring to the single argument form.

POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard