跳转到内容

This page is also in English.

Read it in English

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

真值表(Truth table,truth_table)

条件的真值表:每一种取值组合占一行。

怎么写

truth_table(p)

p
一个条件。接受一个条件,真或假。

示例

  • truth_table⁡(p∧q)=(false⁡false⁡false⁡true⁡false⁡false⁡false⁡true⁡false⁡true⁡true⁡true⁡)\displaystyle \operatorname{truth\_table}(p \land q) = \begin{pmatrix} \operatorname{false} & \operatorname{false} & \operatorname{false} \\ \operatorname{true} & \operatorname{false} & \operatorname{false} \\ \operatorname{false} & \operatorname{true} & \operatorname{false} \\ \operatorname{true} & \operatorname{true} & \operatorname{true} \end{pmatrix}
    truth_table(p and q)

    在求解器中,truth_table(p and q) 的结果是 [[false, false, false], [true, false, false], [false, true, false], [true, true, true]]。

    在求解器中打开