Depending on the value of op
, molecular formulas x
and y
are either added
(op = +
) or subtracted (op = -
).
add_sub_mol_form(op, x, y)
Arguments
op |
Operator. |
x |
Left operand. |
y |
Right operand. |
Value
A molecular formula resulting from the binary operation.