Mathematica基础——Boole

 时间:2024-10-13 10:14:48

1、判断一个命题的真假,真则返回1,假则返回0。Boole[2>0]这个不等式,还可以用Simplify、Reduce来判断。

Mathematica基础——Boole

2、计算曲线y^8+ x^8==1所围成的图形的面积:Integrate职邗珩垃[Boole[ y^8+ x^8 <=1], {x, -Infinity, Infinity}, 撑俯擂摔{y, -Infinity, Infinity}]其实就是对区域内每一个点赋值为1,然后积分。

Mathematica基础——BooleMathematica基础——Boole

3、做出图形y^8+ x^8==1:ContourPlot[y^8+ x^8==1 ,{x,-1.1,1.1},{y,-1.1,1.1}]

Mathematica基础——BooleMathematica基础——Boole

4、计算曲面y^8+ x^8+z^8==1内部的体积:Integrate职邗珩垃[Boole[ y^8+ x^8+z^8<=1], {x, -Infinity, Infinity}, 撑俯擂摔{y, -Infinity, Infinity}, {z, -Infinity, Infinity}]

Mathematica基础——BooleMathematica基础——Boole

5、画出这个曲面。ContourPlot3D[y^8+ x^8+z^8==1 ,{x,-1.1,1.1}, {y,-1.1,1.1},{z,-1.1,1.1},ContourStyle->Opacity[0.5]]

Mathematica基础——BooleMathematica基础——Boole
  • 如何使用python语言中的方法获取字典中的值
  • web前端初学--头部和导航
  • c#数字输入框如何显示01
  • 高等数学入门——常见极限未定式总结(上)
  • 线性方程组的解的应用2?
  • 热门搜索
    同学录留言大全 怎么搭配衣服 下厨房菜谱大全 河粉怎么做好吃 冠心病的治疗方法 海兔怎么做好吃 路标指示牌图片大全 解酒的方法 最优化方法 除螨虫的方法