# Ratio between two sets of numbers?

I have two sets of numbers. The first set is 1 to 4. The second set is 0 to 190. What is the calculation to get the proportionate number in the second set if a number in the first set is, for example, 1.2? Math is not my forte!

-

## 1 Answer

It is $\displaystyle\frac{1.2-1}{4-1}\cdot (190-0) +0$.

-

Can you express that equation without the fraction? For a programming equation? – user1342133 Sep 27 '12 at 23:19
If your input is $x$, then to go from $[1,4]$ to $[0,190]$, compute $(x-1)*190/3$. – Théophile Sep 27 '12 at 23:32
That's it, thanks! – user1342133 Sep 27 '12 at 23:37
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 5, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9148833751678467, "perplexity_flag": "middle"}