I do not know how to code the following.
Suppose you have a list lst={x1,...,xn}
and you need to find a number $Z$, to a given digits precision such that
Z * lst={y1,..,yn}
in which all $y_i$ are integers. I am clueless.
Thanks in advance.
Edit: AlsoTo be more precise, I would likegiven a list of numbers $Z$lst={x1,...,xn}
and a parameter $\varepsilon>0 $ I want to befind the minimum positivesmallest real number $Z$ such that this is truefor each $i \leq n$ we have $\mid Z\cdot x_i-\text{Round}(z\cdot x_i) \mid<\varepsilon $. Here Round$(x)$ denotes the closest integer to $x$.