Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: atan2: Mata vs Stata

From   Chris Parker <>
Subject   st: atan2: Mata vs Stata
Date   Tue, 26 Feb 2013 19:59:46 -0500

Does anyone know why I get different answers for atan2 when
calculating in Mata and Stata? Here is an example from Stata/SE 12.1
for Mac

. disp atan2(sqrt(.0113631735),sqrt(1-.0113631735))

. mata
------------------------------------------------- mata (type end to
exit) -----------------------------------------------------------
: atan2(sqrt(.0113631735),sqrt(1-.0113631735))

: end

I feel like I must be missing something very simple but I can't figure
out what it is.

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index