Opened 8 years ago

Last modified 18 months ago

#10069 new defect

Sums/products of numeric objects should never be held

Reported by: kcrisman Owned by: burcin
Priority: minor Milestone: sage-8.1
Component: symbolics Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

See #9879.

sage: i.mul(2)
2*I
sage: i.mul(2,hold=True)
2*I*
sage: i.mul(2,hold=True).simplify()
2*I
sage: i.mul(i)
-1
sage: i.mul(i,hold=True)
-
sage: i.mul(i,hold=True).simplify()
-1

Change History (6)

comment:1 Changed 6 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:2 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:3 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:4 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:5 Changed 18 months ago by rws

  • Milestone changed from sage-6.4 to sage-8.1
  • Summary changed from Typesetting with hold=True can be weird to Sums/products of numeric objects should never be held

I think it's a defect but in the sense that products of numeric objects should never be held. You will find that using the above constructs will cause all sort of problems.

Note: See TracTickets for help on using tickets.