If statement in calculated question

Re: Ang: If statement in calculated question

by Ehren Bucholtz -
Number of replies: 0
I found a solution that seems to be much simpler. I didn't understand all the extra code in the above suggestion. Then it dawned on me it is just determining the minimum of two calculations:


min(calculation variable 1, calculation variable)

For the reaction:

N2 + 3 H2 → 2NH3

Calculate the number of moles of NH3 formed when {n2} mol of N2 is treated with {h2} H2.

min(2/3*{h2}2*{n2})

This also allows for calculations with grams of starting materials and grams of products. You just need to determine the calculation ahead of time with molar mass and mole ratios.