I got a very absurd result when I used the REPL today for linear algebra calculations. I entered first the Windows Terminal(new version) and then typed Julia and entered the REPL.

I calculated some 2 dimensional vector, in a few different ways to verify my computation.

Then something weird happened. I typed 50*38 - 41^2 and I got the same two dimensional vector. and then 1900-1681 and got this 2 dimensional vector again. Maybe I defined some weird thing? is it possible to define 1900-1681 = [3;-2]??

I post my screenshot here.

I assume you have overwritten the definition of `-`

, something like:

```
julia> a - b = [3, -2]
- (generic function with 1 method)
julia> 1900-1681
2-element Vector{Int64}:
3
-2
julia> 5 - 2
2-element Vector{Int64}:
3
-2
```

Just to be sure, in a fresh session:

```
julia> 50 * 38 - 41^2
219
```

7 Likes