Method Deck / other

Solve a proportion a:b = c:x

Solves the missing fourth term of a proportion a:b = c:x.

Published for review. The Founder is checking every card himself; anything he strikes comes down the same hour.

Try it

Inputs

Outputs

Steps

  1. A proportion a:b = c:x means a/b = c/x.
  2. Cross-multiplying gives a*x = b*c, so x = (b*c) / a.
  3. Round to 2 decimals.

Constants

None.

Sources

Worked example and test vectors

NameInputsAnswer
worked example{"a":2,"b":3,"c":10}15.00
test vector: larger numbers{"a":4,"b":9,"c":16}36.00

Published card