ekmett / ekmett/intervals

Multiplying intervals with 0 and infinite end points returns Empty

Open
#61 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
27
Forks
14
PR merge metrics
No merged PRs in 30d

Description

```
> (0 ... 1) * whole
Empty
```
I think it should be:
```
> (0 ... 1) * whole
(-Infinity ... Infinity)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported expression `(0 ... 1) * whole` and inspect the interval multiplication implementation and its existing tests. The work is done when this case returns `(-Infinity ... Infinity)` instead of `Empty`, with the relevant test coverage passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.