有没有好的布尔表达式简化器? [英] Any good boolean expression simplifiers out there?

查看:113
本文介绍了有没有好的布尔表达式简化器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在重构旧代码,并遇到了几个IF条件,这些条件过于复杂和漫长,我敢肯定它们可以简化.我的猜测是,由于后来的修改,这些情况增长了很多.

I was refactoring old code and encountered several IF conditions that were way too complex and long and I'm certain they can be simplified. My guess is that those conditions grew so much because of later modifications.

无论如何,我想知道您是否知道我可以使用一个好的在线简化程序.我对任何特定的语言都不感兴趣,只是一个简化的例子,例如:

Anyway, I was wondering if any of you know of a good online simplifier I can use. I'm not interested in any specific language, just a simplifier that would take in for example:

(((A OR B)AND(!B AND C)OR C)

如果有的话,给我一个简化的表达式.

And give me a simplified version of the expression, if any.

我已经看过其他类似的问题,但是没有一个指向我的简化器.

I've looked at the other similar questions but none point me to a good simplifier.

谢谢.

推荐答案

您可以根据您的输入尝试使用Wolfram Alpha,如本例所示:

You can try Wolfram Alpha as in this example based on your input:

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆