SciProgCentre / kmath

Kotlin mathematics extensions library
656 stars 55 forks source link

Move `LogicAlgebra.Companion.TRUE` and `LogicAlgebra.Companion.FALSE` somewhere else #377

Open CommanderTvis opened 3 years ago

CommanderTvis commented 3 years ago

It is incorrect to stick true and false to logic operations because of many-valued logic systems: ternary logic, probabilistic logic.

altavir commented 3 years ago

I do not think that fuzzy logic could be made to work with the same interfaces as boolean logic. Does it even have the same operations?

CommanderTvis commented 3 years ago

No, my mistake in mentioning it.

altavir commented 3 years ago

In this case, we use this interface only for binary logic (we can rename it to BinaryLogic if you want).

CommanderTvis commented 3 years ago

It's OK.