Ok here is the scenario, I have an empty cup and a piston that forms an airtight seal. The gas in side is just standard air, at 14.7 psi, and 25ºC. If I compress the piston by 50% so the volume the of gas inside is 1/2 what it was before, the pressure would more than twice as high and the temperature would be higher as well.
My question is what formula would I use to calculate the pressure and temperature of the compressed gas?
I have been looking online for a while and cannot find this, but I am probably using the wrong words.