What this calculator does
Find two numbers whose product and sum match a diamond problem.
How it works
The calculator evaluates x + y = S and xy = P, so x and y are roots of t² − St + P = 0. Inputs are checked before calculation, and invalid values such as zero denominators or out-of-range selections produce a clear error instead of a misleading result.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
2-
?product=ProductNumber · Required · Default: 12
-
?sum=SumNumber · Required · Default: 7
Outputs
3-
firstNumberFirst numberText · Primary output
-
secondNumberSecond numberText
-
factorizationFactorizationText
Inputs and results
The inputs are Product, Sum. Results include First number, Second number, Factorization.