Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

is_satisfiable function

Test whether a condition is true for some value of its variables.

How to write it

is_satisfiable(p)

p
A condition. Takes a condition, true or false.

Examples

  • p∧q  true⁡\displaystyle p \land q \; \operatorname{true}
    is_satisfiable(p and q)

    In the solver, is_satisfiable(p and q) gives true.

    Open in the solver
  • is_tautology

    Test whether a condition is true for every value of its variables.

  • is_odd

    Test whether a whole number is odd.

  • less

    True when the first value is less than the second: the function form of <.

  • is_numeric

    Test whether a value has a numeric value, such as pi.

  • less_equal

    True when the first value is at most the second: the function form of <=.

  • is_number

    Test whether a value is a number.