'Mathematics Mod Function

I would love if someone can try to explain the difference between the two equations below and why they equal different values but from what i can see are the same.

23^-1 mod 4169

mod(23^-1, 4169)

I am using MATLAB to try to compute the first equation shown, however, I am getting the result of the second.

d = mod(23^-1, 4169)
RESULT: 0.0435
SHOULD BE: 3444

Any ideas? :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source