Page 1 of 1

Difference between X and Y is greater than Z - formula.

Posted: Sun Nov 13, 2022 12:54 pm
by dudo02
I've been looking for software like this for a long time - it's perfect. A job well done.

I would like to ask about the formula that looks for values in the graph if the difference between X and Y is greater than Z.

Re: Difference between X and Y is greater than Z - formula.

Posted: Sun Nov 13, 2022 3:30 pm
by Waveworks
Thank you for your kind words, glad you find it useful! The boolean expression for that would be simply X - Y > Z, or as a formula, b = X - Y > Z, which would give you a boolean variable b that's 1 for samples fulfilling the condition and 0 otherwise. Hope that helps!

Best regards,
Gustaf

Re: Difference between X and Y is greater than Z - formula.

Posted: Sun Nov 13, 2022 3:43 pm
by Waveworks
An addition to my response: If you mean the absolute difference, use the abs function: b = abs(X - Y) > Z.

Re: Difference between X and Y is greater than Z - formula.

Posted: Sun Nov 13, 2022 4:14 pm
by dudo02
Thank you very much.