-
関連項目
- 関数
- If
- Piecewise
- DiscreteDelta
- UnitStep
- Unitize
- Ramp
- DiscreteIndicator
- Pick
- RegionPlot
- True
-
- ネットエンコーダ
- Boolean
-
- コンパイルタイプ
- Boolean
- 関連するガイド
- テクニカルノート
Boole
例題
すべて開く すべて閉じる例 (3)
アプリケーション (4)
ineq = y ^ 2 - 4x ^ 2 + 4x ^ 4 ≤ 0;Integrate[Boole[ineq], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}]NIntegrate[Boole[ineq], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}]RegionPlot[ineq, {x, -1, 1}, {y, -1, 1}]ineq = y ^ 2 - 4x ^ 2 + 4x ^ 4 ≤ -z ^ 2;Integrate[Boole[ineq], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}, {z, -Infinity, Infinity}]NIntegrate[Boole[ineq], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}, {z, -Infinity, Infinity}]RegionPlot3D[ineq, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}]Integrate[Boole[x ^ 2 + y ^ 2 < a], {x, -1, 1}, {y, -1, 1}]Table[RegionPlot[x ^ 2 + y ^ 2 < a, {x, -1, 1}, {y, -1, 1}], {a, {1 / 2, 3 / 2, 5 / 2}}]プロットのため,True,False値表を1,0に変換する:
ArrayPlot[Boole[Table[PrimeQ[a ^ b + 3], {a, 50}, {b, 50}]]]特性と関係 (7)
ブール(Boole)値の逆:
(# != 0)& /@ {1, 0, 1, 1, 1}Boole[%]PiecewiseExpandを使ってBooleをPiecewiseに変換する:
PiecewiseExpand[Boole[a]]条件についての論理操作とBooleに対する算術操作の対応:
Simplify[Boole[a && b] - Min[Boole[a], Boole[b]]]Simplify[Boole[a || b] - Max[Boole[a], Boole[b]]]Simplify[Boole[a && b] - Boole[a]Boole[b]]Simplify[Boole[a || b] - (Boole[a] + Boole[b] - Boole[a]Boole[b])]Simplify[Boole[!a] - (1 - Boole[a])]Refine,Simplify,FullSimplifyを使ってBooleを含む式を変換する:
Refine[Boole[x ^ 2 + y ^ 2 < 10 && x > y], (x - 2) ^ 2 + y ^ 2 < 1]Simplify[Boole[x > y], x == y + 2]Booleを含む方程式を簡約し,Booleを含む関数を最適化する:
Reduce[Exp[Sin[x]Boole[x ^ 2 + y ^ 2 < 1]] < 1, {x, y}]Minimize[Exp[Sin[x]Boole[x ^ 2 + y ^ 2 <= 1]], {x, y}]積分問題でBooleを特性関数として使う:
Integrate[(x ^ 2 + x y + 3y ^ 4)Boole[x ^ 2 + y ^ 2 < 1 && y > x], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}]NIntegrate[Exp[x ^ 2 + x y + 3y ^ 4]Boole[x ^ 2 + y ^ 2 < 1 && y > x], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}]Booleは,場合によっては,DifferenceRootとして表すことができる:
DifferenceRootReduce[Boole[Mod[k, 5] == 1], k]関連項目
If Piecewise DiscreteDelta UnitStep Unitize Ramp DiscreteIndicator Pick RegionPlot True
ネットエンコーダ: Boolean
コンパイルタイプ: Boolean
Function Repository: InverseBoole
関連するガイド
-
▪
- 数値関数 ▪
- 不等式 ▪
- 論理演算とブール代数 ▪
- ブール計算 ▪
- 条件文
履歴
2004 で導入 (5.1) | 2007 で更新 (6.0)
テキスト
Wolfram Research (2004), Boole, Wolfram言語関数, https://reference.wolfram.com/language/ref/Boole.html (2007年に更新).
CMS
Wolfram Language. 2004. "Boole." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/Boole.html.
APA
Wolfram Language. (2004). Boole. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Boole.html
BibTeX
@misc{reference.wolfram_2026_boole, author="Wolfram Research", title="{Boole}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Boole.html}", note=[Accessed: 10-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_boole, organization={Wolfram Research}, title={Boole}, year={2007}, url={https://reference.wolfram.com/language/ref/Boole.html}, note=[Accessed: 10-September-2026]}