You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# "If ``x1_i`` and ``x2_i`` have the same mathematical sign, "
508
-
# "the result has a (.+)"
509
-
# ): lambda: same_sign,
510
-
# re.compile(
511
-
# "If ``x1_i`` and ``x2_i`` have different mathematical signs, "
512
-
# "the result has a (.+)"
513
-
# ): lambda: diff_sign,
514
-
# re.compile(
515
-
# "If ``x1_i`` and ``x2_i`` have the same mathematical sign and "
516
-
# "are both (.+), the result has a (.+)"
517
-
# ): lambda v: (
518
-
# lambda i1, i2: same_sign(i1, i2) and make_eq(v)(i1) and make_eq(v)(i2)
519
-
# ),
520
-
# re.compile(
521
-
# "If ``x1_i`` and ``x2_i`` have different mathematical signs and "
522
-
# "are both (.+), the result has a (.+)"
523
-
# ): lambda v: (
524
-
# lambda i1, i2: diff_sign(i1, i2) and make_eq(v)(i1) and make_eq(v)(i2)
525
-
# ),
526
-
# re.compile(r"If ``x1_i`` and ``x2_i`` have the same mathematical sign, the result has a (.+), unless the result is (.+)\. If the result is .+, the \"sign\" of .+ is implementation-defined")
527
-
# re.compile(r"If ``x1_i`` and ``x2_i`` have different mathematical signs, the result has a (.+), unless the result is (.+)\. If the result is (.+), the \"sign\" of (.+) is implementation-defined")
558
+
re.compile(
559
+
"If ``x1_i`` and ``x2_i`` have (.+signs?), the result has a "
560
+
rf"{r_result_sign.pattern} , unless the result is (.+)\. If the result "
561
+
r"is ``NaN``, the \"sign\" of ``NaN`` is implementation-defined\."
0 commit comments