布尔函数的真值表 [英] truth table from boolean function

查看:1398
本文介绍了布尔函数的真值表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

输入采用此形式
示例


F(X,Y,Z,W)= X.Y +(W + Z).Y

想要解析此函数并将结果显示在真值表中

the input take this formla
EXAMPLE


F(X,Y,Z,W)=X.Y+(W+Z).Y

ineed to parssing this function and shwo the result in the truth table

推荐答案

您是否要我们为您做功课?因为那是它的样子,而不是我们在这里的目的.

如果您有特定问题,请提问.就像,如果您想知道甚至应该如何设置桌子,请征求建议.但是我们不会为您完成这项工作.
Are you asking us to do your homework for you? Cause that''s what it looks like and that''s not what we''re here for.

If you have specific questions, ask those. Like, if you want to know how you should even set up the table, ask for suggestions. But we''re not going to do the work for you.


这太复杂了,无法在此处回答.

我建议您看一下这篇数学分析文章:

带有插件的可扩展数学表达式解析器 [
This is far too complicated to answer here.

I suggest you take a look at this maths parsing article:

An extensible math expression parser with plug-ins[^]

And adapt. As you are only dealing with only logic, it should be easier than a full maths parser.


这篇关于布尔函数的真值表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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