Macaulay2 / Macaulay2/M2

Extra space in expressions of sequences

Open
#3,502 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Core
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

```m2
i1 : R = kk[x,y];

i2 : net ideal x

o2 = ideal x

i3 : net ideal(x+y)

o3 = ideal(x + y)
```
Now notice the extra space before the parentheses:
```
i4 : net ideal(x+y,x-y)

o4 = ideal (x + y, x - y)

i5 : net ideal(x,y)

o5 = ideal (x, y)
```
@pzinn do you have a guess of what's causing this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the `net ideal(x+y,x-y)` and `net ideal(x,y)` examples from the issue and compare their printed output with the cases that do not show the extra space. Trace the expression-printing path responsible for sequence output, then add or update a regression test showing that `ideal(...)` is printed without the unwanted space.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.