I am simply trying to get the angle of a complex number. To test the angle function provided in Julia I first tried :
angle(1+im)
But I get the following error message :
MethodError: objects of type Float64 are not callable
Stacktrace: [1] include_string(::String, ::String) at ./loading.jl:515
When I try to ask typeof(1+im)
Julia answers
Complex{Int64}
I don't understand what is happening with the angle function. I tried with 1+1*im but I get the same answer.
Could anyone help please? I could also calculate the angle from coordinates but I'd like to understand Julia language as well.
Thank you
angle
accidentally... - daycaster