https://github.com/lovasoa/reliability-theory
Compute the probabiity of a compound system to fail.
https://github.com/lovasoa/reliability-theory
Last synced: about 1 year ago
JSON representation
Compute the probabiity of a compound system to fail.
- Host: GitHub
- URL: https://github.com/lovasoa/reliability-theory
- Owner: lovasoa
- License: gpl-3.0
- Created: 2016-03-23T22:47:36.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T12:07:37.000Z (almost 6 years ago)
- Last Synced: 2025-02-08T23:42:43.423Z (over 1 year ago)
- Language: Haskell
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/lovasoa/reliability-theory/releases/latest).
## How to use
Launch the program. Enter a system in the following syntax
### Syntax
#### schema

```
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)
```