Skip to content

Commit 01e8cc3

Browse files
author
Daniel Silva
committed
Add indication of bug in union method.
1 parent 22cd250 commit 01e8cc3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ $interval->inInterval(15.25); // TRUE
4444
```
4545

4646
### Union
47+
> **BUG**: The union method is broken. Do not use. See [issue #4](https://github.com/danielfdsilva/mathInterval/issues/4)
48+
4749
```php
4850
// Create your first interval.
4951
$interval = new MathInterval('[5,20]');
@@ -72,6 +74,8 @@ print $interval; // [17,20]
7274
MathInterval also allows you to use expressions to initialize and compute intervals. The official symbols for intersections and union are ∩ and ⋃, but, since these are hard to type, MathInterval uses ```and``` and ```or```.
7375

7476
For example:
77+
> **BUG**: The union method is broken. Do not use (or) in the expression. See [issue #4](https://github.com/danielfdsilva/mathInterval/issues/4)
78+
7579
```php
7680
// [5,20] ⋃ [10,25]
7781
$interval = new MathInterval('[5,20] or [10,25]');
@@ -100,4 +104,4 @@ You are free to contribute to the project. If you find a bug or have a nice idea
100104
The framework testing is done using phpunit. To run the tests you just need to run ```phpunit``` in the root folder.
101105

102106
##License
103-
MathInterval is licensed under **The MIT License (MIT)**, see the LICENSE file for more details.
107+
MathInterval is licensed under **The MIT License (MIT)**, see the LICENSE file for more details.

0 commit comments

Comments
 (0)