Skip to content

ArtyomKingmang/mamath_boolean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

library for Boolean algebra for jvm

Example:

fun main(args: Array<String>) {
    val sum = MathFunction.parse("((a xor b) xor c) xor t")
    println(sum)
    println(TruthTable(sum))
}

Result:

((a^b)^c)^t

F1=((a^b)^c)^t
a b c t | F1
------------
0 0 0 0 | 0
0 0 0 1 | 1
0 0 1 0 | 1
0 0 1 1 | 0
0 1 0 0 | 1
0 1 0 1 | 0
0 1 1 0 | 0
0 1 1 1 | 1
1 0 0 0 | 1
1 0 0 1 | 0
1 0 1 0 | 0
1 0 1 1 | 1
1 1 0 0 | 0
1 1 0 1 | 1
1 1 1 0 | 1
1 1 1 1 | 0

About

library for Boolean algebra for jvm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published