Ticket #1345 (closed defect: fixed)
[with patch, with positive review] I is sometimes wrapped in SymbolicConstant, sometimes not
| Reported by: | cwitty | Owned by: | mhansen |
|---|---|---|---|
| Priority: | major | Milestone: | sage-2.8.15 |
| Component: | calculus | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
This behavior seems strange:
sage: foo = I+I sage: foo._operands [I, I] sage: [type(i) for i in foo._operands] [<class 'sage.calculus.calculus.SymbolicConstant'>, <class 'sage.functions.constants.I_class'>]
And here's another strange thing (probably the same bug):
sage: is_SymbolicExpression(SR(I)) False
Attachments
Change History
comment:1 Changed 5 years ago by mhansen
- Status changed from new to assigned
- Summary changed from I is sometimes wrapped in SymbolicConstant, sometimes not to [with patch] I is sometimes wrapped in SymbolicConstant, sometimes not
comment:4 Changed 5 years ago by cwitty
- Summary changed from [with patch] I is sometimes wrapped in SymbolicConstant, sometimes not to [with patch, with positive review] I is sometimes wrapped in SymbolicConstant, sometimes not
The code looks good and the doctests in the affected files pass. I approve.
Note: See
TracTickets for help on using
tickets.

