[awk/en] Fix atan2 args order

This commit is contained in:
Aleksandr Mazurik 2018-07-28 21:48:25 +03:00
parent 0d211d3419
commit d375092374
3 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ function arithmetic_functions(a, b, c, d) {
# Most AWK implementations have some standard trig functions
localvar = sin(a)
localvar = cos(a)
localvar = atan2(a, b) # arc tangent of b / a
localvar = atan2(b, a) # arc tangent of b / a
# And logarithmic stuff
localvar = exp(a)

View File

@ -166,7 +166,7 @@ function arithmetic_functions(a, b, c, localvar) {
# trigonométricas estándar
localvar = sin(a)
localvar = cos(a)
localvar = atan2(a, b) # arcotangente de b / a
localvar = atan2(b, a) # arcotangente de b / a
# Y cosas logarítmicas
localvar = exp(a)

View File

@ -171,7 +171,7 @@ function arithmetic_functions(a, b, c, d) {
# Muitas implementações AWK possuem algumas funções trigonométricas padrão
localvar = sin(a)
localvar = cos(a)
localvar = atan2(a, b) # arco-tangente de b / a
localvar = atan2(b, a) # arco-tangente de b / a
# E conteúdo logarítmico
localvar = exp(a)