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
# re.compile("If ``x1_i`` and ``x2_i`` have the same mathematical sign, the result has a (.+)")
359
-
# re.compile("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")
360
-
# re.compile("If ``x1_i`` and ``x2_i`` have the same mathematical sign and are both (.+), the result has a (.+)")
361
-
# re.compile("If ``x1_i`` and ``x2_i`` have different mathematical signs, the result has a (.+)")
362
-
# re.compile("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")
363
-
# re.compile("If ``x1_i`` and ``x2_i`` have different mathematical signs and are both (.+), the result has a (.+)")
364
-
# re.compile("If ``x2_i`` is (.+), the result is (.+), even if ``x1_i`` is .+")
380
+
re.compile(
381
+
"If ``x1_i`` and ``x2_i`` have the same mathematical sign, "
382
+
"the result has a (.+)"
383
+
): lambda: same_sign,
384
+
re.compile(
385
+
"If ``x1_i`` and ``x2_i`` have different mathematical signs, "
386
+
"the result has a (.+)"
387
+
): lambda: diff_sign,
388
+
re.compile(
389
+
"If ``x1_i`` and ``x2_i`` have the same mathematical sign and "
390
+
"are both (.+), the result has a (.+)"
391
+
): lambdav: lambdai1, i2: same_sign(i1, i2)
392
+
andmake_eq(v)(i1)
393
+
andmake_eq(v)(i2),
394
+
re.compile(
395
+
"If ``x1_i`` and ``x2_i`` have different mathematical signs and "
396
+
"are both (.+), the result has a (.+)"
397
+
): lambdav: lambdai1, i2: diff_sign(i1, i2)
398
+
andmake_eq(v)(i1)
399
+
andmake_eq(v)(i2),
400
+
# TODO: support capturing values that come after the result
401
+
# 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")
402
+
# 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")
0 commit comments