有没有大佬懂这个怎么debug,关于Plot3D的
mathematica吧
全部回复
仅看楼主
level 2
🔥李蜀黍 楼主
Clear["Global`*"]
Kplus = wp/Sqrt[1 + wp/omega];
Kminus = wp/Sqrt[1 - wp/omega];
Plot3D[{Kplus, -Kplus, Kminus, -Kminus}, {wp, 0, 2}, {omega, -2, 2},
PlotRange -> {-4, 4}, BoxRatios -> {1, 1, 1}, BoundaryStyle -> None,
ClippingStyle -> None, PlotPoints -> 30, AxesLabel -> Automatic]
2022年03月17日 03点03分 1
level 2
🔥李蜀黍 楼主
我想得到下面的图,但是总会有一些跳变点,这些跳变点应该是由于分母等于0导致的,但是我不知道怎么debug
2022年03月17日 03点03分 2
吧务
level 10
调下exclusion
2022年03月18日 02点03分 3
exclusions
2022年03月18日 02点03分
不行的,因为中间那两个面还要保留exclusion的[心碎]
2022年03月18日 07点03分
@🔥李蜀黍 那你对另外两个排除,画两幅图再合并呗
2022年03月20日 06点03分
@asdasd1dsadsa 不行的,我试过很多办法。这个绝对不是靠排除可以解决的
2022年03月22日 03点03分
level 4
PlotPoints 设置不够大,100往上,电脑配置可以的话设置到200也行
2022年03月22日 08点03分 4
我试一下这个,这个软件主要吃电脑哪个配件啊?cpu还是内存?
2022年03月23日 01点03分
吧务
level 13
每个表达式单独加If
If[FunctionDomain[
#, {wp, omega}], #
] & /@ {Kplus, -Kplus, Kminus, -Kminus} // Evaluate
或排除奇点
Exclusions -> "Singularities",MaxRecursion -> 6
2022年03月23日 13点03分 5
卧槽!!!!!!!!!!!!!!!!牛比!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2022年03月23日 14点03分
十分感谢大佬!!!一个困扰我好久的问题,但是排除奇异点那个方法好像不太适用[真棒]
2022年03月23日 14点03分
1