我有以下功能
u := proc (x, t) options operator, arrow;
50+sum((100*n*Pi*sin(n*Pi)+100*cos(n*Pi)-100)*cos((1/10)*n*Pi*x)*exp(-(1/100)*n^2*Pi^2*t)/(n^2*Pi^2), n = 1 .. 20)
end proc;
plot3d(u(x, t), x = 0 .. 10, t = 0 .. 20)
我试图在Maple中绘制它,但是没有给我正确的3D形状。
答案 0 :(得分:0)
plot3d(diff(u(x, t),x), x = 0 .. 10, t = 0 .. 20);
private static int oneRun(int range) {
int[] rInt = new int[range + 1];
return IntStream
.rangeClosed(0, range)
.peek(i -> rInt[i] = generator.nextInt(range))
.filter(i -> IntStream.range(0, i).anyMatch(j -> rInt[i] == rInt[j]))
.findFirst()
.orElseThrow(() -> new RuntimeException("Shouldn't be reached!"));
}