I opened a pull request, to change the names of the arguments so that y comes first, then x. I often use methods(func) to get the call to func right so having all argument names right is important.
On Friday, November 7, 2014 8:08:01 PM UTC, Davide Lasagna wrote: > > Hi > > The documentation for atan2 says: > > atan2(*y*, *x*) > > Compute the inverse tangent of y/x, using the signs of both x and y to > determine the quadrant of the return value. > > Ok, so far so good: atan2(0, 1) = 0 and atan2(1, 0) = pi/2. It works, > > However, listing the methods of atan2 shows > > methods(atan2) > # 9 methods for generic function "atan2": > atan2(x::Float64,y::Float64) at math.jl:173 > atan2(x::Float32,y::Float32) at math.jl:174 > atan2(a::Float16,b::Float16) at float16.jl:144 > > > Is this just an error in the naming of the input arguments? > > Davide >