wolfram-mathematica - 将 Boole 与 MaxValue 和/或 PlotRegion 结合使用

标签 wolfram-mathematica

为什么这不起作用? 我以前绕过过这个,但我不记得我是怎么做到的,而且我从来没有继续弄清楚为什么这种类型的输入不起作用。是时候了解它了!

对于那些看不到图片的人:

RegionPlot3D[
 x^2 + 2 y^2 - 2 z^2 = 1 && -1 <= z <= 1, {x, -5, 5}, {y, -5, 
  5}, {z, -1, 1}]    
Set::write: "Tag Plus in -2.+25.+50. is Protected"

然后就只剩下一个空的立方体,没有我的表面。

no description

最佳答案

如果 z 受到其他表面的限制,你可以这样:

RegionPlot3D[
 x^2 + 2 y^2 - 2 z^2 < 1 && z < x + 2 y && z^2 < .5, 
 {x, -2, 2}, {y, -2, 2}, {z, -1, 1}, 
 PlotPoints -> 50, MeshFunctions -> {Function[{x, y, z}, z]}, 
 PlotStyle -> Directive[Red, Opacity[0.8]]]  

enter image description here

或者使用ContourPlot:

ContourPlot3D[
 x^2 + 2 y^2 - 2 z^2 == 1,
 {x, -2, 2}, {y, -2, 2}, {z, -1, 1}, 
 RegionFunction -> Function[{x, y, z}, z < x + 2 y && z^2 < .5], 
 PlotPoints -> 50, MeshFunctions -> {Function[{x, y, z}, z]}, 
 ContourStyle -> Directive[Red, Opacity[0.8]]]]

enter image description here

关于wolfram-mathematica - 将 Boole 与 MaxValue 和/或 PlotRegion 结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6081935/

相关文章:

c++ - 将列表从 Mathematica 传递到 C++ (Mathlink)

wolfram-mathematica - mathematica FullSimplify 懦弱地拒绝完全评估复数的实部?

wolfram-mathematica - 数学中的网格

wolfram-mathematica - DeleteDuplicates 和 Tally 中的不稳定性

wolfram-mathematica - 在Mathematica中,如何定义任意概率分布?

matlab - 使用百分位数定义分布

charts - 可以删除条形图图例上的边框吗?

wolfram-mathematica - Mathematica 中是否有清理屏幕的命令或例程?

c++ - 对非线性系统进行数值求解的最佳库或软件是什么?

wolfram-mathematica - 何时在 Mathematica 中使用 Hold/ReleaseHold?