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:
507
507
sage: R(3/4) * 7
508
508
LocalElt(21/4)
509
509
510
- sage: R.get_action(ZZ)
511
- Right scalar multiplication by Integer Ring on Integer Ring localized at [2]
512
510
sage: cm = sage.structure.element.get_coercion_model()
513
511
sage: cm.explain(R, ZZ, operator.add)
514
512
Coercion on right operand via
@@ -520,8 +518,11 @@ That's all there is to it. Now we can test it out:
520
518
Integer Ring localized at [2]
521
519
522
520
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.
525
526
Result lives in Integer Ring localized at [2]
526
527
Integer Ring localized at [2]
527
528
You can’t perform that action at this time.
0 commit comments