lemke.utils# Functions stripcomments(filename) tofraction(s, decimals) Convert a string to an exact Fraction. tomatrix(m, n, words, start, decimals) tovector(n, words, start, decimals) towords(lines) validate_decimals(decimals) lemke.utils.stripcomments(filename)[source]# lemke.utils.tofraction(s: str, decimals: int) → Fraction[source]# Convert a string to an exact Fraction. If s contains ‘.’, it’s treated as a decimal literal and rounded to decimals places (half away from zero). Otherwise, it’s parsed as an integer or ‘p/q’ fraction string. lemke.utils.tomatrix(m, n, words, start, decimals)[source]# lemke.utils.tovector(n, words, start, decimals)[source]# lemke.utils.towords(lines)[source]# lemke.utils.validate_decimals(decimals)[source]#