gate_or

The Boolean logic gate "or" in the fault tree. Calculate the probability that the conditioning event happens according to the inputs.

Syntax

Description

Calculate the probability that the conditioning event happens according to the inputs q1 and q2.

The relationship between them satisfies the following equation.

q=1(1q1)×(1q2)

where q1,q2[0,1].

Examples

Examples

Input Arguments

q1 —— The probability that an event happens, specified as a positive numeric scaler in [0,1].


q2 —— The probability that the other event happens, specified as a positive numeric scaler in [0,1].