Skip to main content
added 213 characters in body
Source Link

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$.

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: Also, I would like $Z$ to be the minimum positive real such that this is true.

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: To be more precise, given a list of numbers lst={x1,...,xn}and a parameter $\varepsilon>0 $ I want to find the smallest real number $Z$ such that for 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$.

deleted 3 characters in body
Source Link

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: Also, I would like $Z$ to be the minimum positive integerreal such that this is true.

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: Also, I would like $Z$ to be the minimum positive integer such that this is true.

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: Also, I would like $Z$ to be the minimum positive real such that this is true.

Added an additional requirement
Source Link

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: Also, I would like $Z$ to be the minimum positive integer such that this is true.

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.

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: Also, I would like $Z$ to be the minimum positive integer such that this is true.

Source Link
Loading