This depends on your definition of opposite, if you define opposite as the inverse of something then indeed 7 is the opposite of 1/7 however you could also define opposite as the negative of something, hence the opposite of 7 is -7, the word opposite is not well defined when it comes to mathematics so refrain from using it.