我怎样才能简化这个按位方程?

发布于 2025-01-10 12:05:09 字数 223 浏览 5 评论 0原文

我怎样才能将这个方程简化为其中

(x1^y1)&(x2^y2)=(x1^y1)

y2=( (x1^y1) | x1) ^ x1

^ 是异或,| 是 or 和 & 分别是 and 运算。

谢谢。

How can i simplify this equation from this

(x1^y1)&(x2^y2)=(x1^y1)

to this

y2=( (x1^y1) | x1) ^ x1

where ^ is xor, | is or and & is and operations respectively.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧时模样 2025-01-17 12:05:09

x1 = y1 = false
x2 = y2 = true

第一个方程成立 (false = false),但第二个方程成立 (true = false) 时。

您无法将第一个方程简化为第二个方程。

When

x1 = y1 = false
x2 = y2 = true

the first equation holds (false = false), but not the second (true = false).

You cannot simplify the first to the second equation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文