Help with annoying maths

hello mathematicians,

I’ve been hurting my soul all day with figuring out the following relation. I am trying to automatically adjust a virtual projector to a virtual object, so that it’s zoom ratio automatically fits the objects scale. Now there is a function, that I just can’t find out. I’m sure for somebody who is into maths it’s pretty basic. So here it is:

Scale 2.4 -> Zoom 0.4
Scale 1.2 -> Zoom 0.8
Scale 1.5 -> Zoom 0,64
Scale 0.6 -> Zoom 1,6

All I want to find out is the proper Zoom for any given Scale.

Thanks a lot,

Alex

It seems there’s an inverse proportion between values.
Since the multiplication of each pair of values gives 9.6
=>
Scale1 : Scale3 = Zoom3 : Zoom1
=>
2.4 : 1.5 = x : 0.4 => x = 2.4 * 0.4 / 1.5 = 0.64
=>
Constant = (Scale1 * Zoom1)
ZoomN = Constant / ScaleN => this should let you Input any Scale and get the correct Zoom value

thank you h99! you saved the day! I was already planning to show up in my son’s maths classes ;)