mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-07-31 03:50:32 +02:00
[awk/en] Fix atan2 args order
This commit is contained in:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user