2
$\begingroup$

Feel free to let me know if this is better suited for:

That said, I'm wondering if there's a math term for the nature of "sum", "difference", "product", and "quotient".

Now these are obviously the results of specific operations (i.e. sum can only be produced by an addition operation), however is there a math term more appropriate than how I just used "results"?

Another way to put it, say I were building an array of these terms, what would the variable name be?

const someMathTerm = ['SUM', 'DIFF, 'PROD', 'QUOT'];
$\endgroup$
  • 1
    $\begingroup$ From Wikipedia "The values combined are called operands, arguments, or inputs, and the value produced is called the value, result, or output." I don't know of any technical word beyond these. Of course you could make one up. For instance, because "quotient" is the special name for the result of division, maybe "operant" should be the name for the result of an arbitrary binary operation. $\endgroup$ – user137731 Jun 1 '16 at 16:38
  • $\begingroup$ @Bye_World Thanks! I think for my needs my best bet is to just suffix your above terms with type (resultType or outputType), since you're right, there doesn't appear to be a more technical term. I always like checking on these little things however. Thanks again. $\endgroup$ – lux Jun 1 '16 at 16:54
2
$\begingroup$

How about binaryOperationResult?

Addition, subtraction, etc., are all binary operations: A -OPERATION- B.

Then you can add ROOT, RMDR, ...

(I sense that you want something more meaningful than value, result, etc., as those tend to be overused and six months later you're asking yourself as you read your code, "What kind of value? Result of what?")

$\endgroup$
  • $\begingroup$ I like it! Much more descriptive. $\endgroup$ – lux Jun 1 '16 at 18:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.