Ball loses speed when it bounces straight up

I have a simple game consisting solely of a ball and paddle. I made it so that when the ball hits the paddle, xa = 0 and ya = Math.abs(ya) * -1. The ball goes straight up like I want it to, but it’s moving a lot slower. Does anyone know what accounts for this and how I can make up for it?