File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/doc/en/reference/coercion Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -507,8 +507,6 @@ That's all there is to it. Now we can test it out:
507507 sage: R(3/4) * 7
508508 LocalElt(21/4)
509509
510- sage: R.get_action(ZZ)
511- Right scalar multiplication by Integer Ring on Integer Ring localized at [2]
512510 sage: cm = sage.structure.element.get_coercion_model()
513511 sage: cm.explain(R, ZZ, operator.add)
514512 Coercion on right operand via
@@ -520,8 +518,11 @@ That's all there is to it. Now we can test it out:
520518 Integer Ring localized at [2]
521519
522520 sage: cm.explain(R, ZZ, operator.mul)
523- Action discovered.
524- Right scalar multiplication by Integer Ring on Integer Ring localized at [2]
521+ Coercion on right operand via
522+ Coercion map:
523+ From: Integer Ring
524+ To: Integer Ring localized at [2]
525+ Arithmetic performed after coercions.
525526 Result lives in Integer Ring localized at [2]
526527 Integer Ring localized at [2]
527528
You can’t perform that action at this time.
0 commit comments