lovasoa / reliability-theory

Compute the probabiity of a compound system to fail.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reliability-theory

Compute the probabiity of a compound system to fail. https://en.wikipedia.org/wiki/Reliability_theory

Goal

Given a system composed of several parallel or series subsystems, each of which succeeds which a given or unknown probability, compute the succeed rate of the full system.

It contains a literal expression simplificator. So you can enter a system with both hard-coded and literal reliability values, the result will always be printed nicely.

Download

You can download pre-built binaries for macos, windows and linux from the release page.

How to use

Launch the program. Enter a system in the following syntax

Syntax

schema

reliability diagram

1 2/2/2 3 4

You can use parenthesis for more complex systems.

Exemples

> 1/2
p_1 + p_2 - (p_1*p_2)
> 0.1/0.1
0.19
> a/b (c 0.9)/d 0.99
-0.99*(p_a*p_b*p_d) + -0.891*(p_a*p_b*p_c) + -0.891*(p_a*p_c*p_d) + -0.891*(p_b*p_c*p_d) + 0.891*(p_a*p_b*p_c*p_d) + 0.891*(p_a*p_c) + 0.891*(p_b*p_c) + 0.99*(p_a*p_d) + 0.99*(p_b*p_d)

About

Compute the probabiity of a compound system to fail.

License:GNU General Public License v3.0


Languages

Language:Haskell 100.0%