コンテンツへスキップ

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)

条件の真理値表。値の組み合わせごとに1行。

書き方

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]] です。

    ソルバーで開く