MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Asin

Function Asin

tensorflow/compiler/xla/client/lib/math.cc:1126–1129  ·  view source on GitHub ↗

asin(x) = 2 * atan(x / (1 + sqrt(1 - x^2)))

Source from the content-addressed store, hash-verified

1124
1125// asin(x) = 2 * atan(x / (1 + sqrt(1 - x^2)))
1126XlaOp Asin(XlaOp x) {
1127 return ScalarLike(x, 2.0) *
1128 Atan2(x, ScalarLike(x, 1.0) + Sqrt(ScalarLike(x, 1.0) - x * x));
1129}
1130
1131XlaOp Atan(XlaOp x) { return Atan2(x, ScalarLike(x, 1.0)); }
1132

Callers 3

unary_ops.ccFile · 0.50
TEST_FFunction · 0.50
TestCWiseGradMethod · 0.50

Calls 3

ScalarLikeFunction · 0.85
Atan2Function · 0.50
SqrtFunction · 0.50

Tested by 2

TEST_FFunction · 0.40
TestCWiseGradMethod · 0.40