Skip to content
Snippets Groups Projects

Print small integer powers as divisions/multiplications

Merged Daniel Bauer requested to merge terraneo/pystencils:bauerd/print-pow into master

Fixes #72 (closed).

After a longer discussion we decided to reintroduce the special logic into the printer after it was removed in 939241f2. The problem is that it is simply impossible to keep Muls unevaluated in cut_loops. Neither deep_copy nor func(*args) works.

A logic-free printer simply goes against how SymPy works. We can have it, but first we must switch to a SymPy free ast datastructure.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply