Skip to main content
7 events
when toggle format what by license comment
Mar 17, 2020 at 1:34 comment added bill s I think you need to show an example of what you are talking about, since I answered the question you asked (even if it wasn't the question you intended to ask).
Mar 17, 2020 at 1:05 comment added Victor Gustavo May It does work, but is not quite the answer to the problem. This is because this solution will only return the smallest integer $z$ such that z * lst is a integer list, what I need is the smallest positive real $z$.
Mar 17, 2020 at 0:51 comment added bill s If it is not working, please show an example of how it fails. But really, look at the help for Rationalize, this is the function you want.
Mar 16, 2020 at 23:32 comment added Victor Gustavo May Thanks, I did so. But my result is always an integer, which is not always the case for the minimum $z$ that works
Mar 16, 2020 at 23:27 comment added bill s You said your list was composed of rational numbers times $\pi$/180, so multiply by 180/$\pi$. Otherwise you can rationalize the list using Rationalize[list, inc].
Mar 16, 2020 at 23:20 comment added Victor Gustavo May What if my list is not made up of rationals, but I wanted some degree precision, namely 10 digits. How could I transform my list into a list of rationals? so that I can use this
Mar 16, 2020 at 23:15 history answered bill s CC BY-SA 4.0