2013-04-08 3 views
0

mathematica에 익숙한 사람이 왜 내 그림을 그리지 않을 수 있습니까?Mathematica 호

plot1 = ContourPlot3D[{x^2 + (y + 0.25)^2 + (z - 0.45)^2 = 0.25, 
    x^2 + y^2 + (z + 0.5)^2 = 0.25, 
    x^2 + (y + 0.5)^2 + (z - 1.4)^2 = 0.25, 
    x^2 + (y + 0.25)^2 + (z - 2.35)^2 = 0.25, 
    x^2 + y^2 + (z - 3.3)^2 = 0.25, 
    x^2 + (y + 0.25)^2 + (z - 4.25)^2 = 0.25, 
    x^2 + (y + 0.5)^2 + (z - 5.2)^2 = 0.25, 
    x^2 + (y + 0.25)^2 + (z - 6.15)^2 = 0.25, 
    x^2 + y^2 + (z - 7.1)^2 = 0.25}, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}] 

plot2 = ContourPlot3D[{x^2 + (y - 0.5)^2 + (z - 0.25)^2 = 0.25, 
    x^2 + (y - 0.75)^2 + (z - 1.15)^2 = 0.25, 
    x^2 + (y - 1)^2 + (z - 2.05)^2 = 0.25, 
    x^2 + (y - 1.25)^2 + (z - 2.95)^2 = 0.25, 
    x^2 + (y - 1.5)^2 + (z - 3.85)^2 = 0.25, 
    x^2 + (y - 1.75)^2 + (z - 4.75)^2 = 0.25}, {x, -3, 3}, {y, -3, 
    3}, {z, -3, 3}] 

plot3 = ContourPlot3D[{x^2 + (y + 0.5)^2 + z^2 = 0.25, 
    x^2 + (y + 1)^2 + (z - 0.75)^2 = 0.25, 
    x^2 + (y + 1.5)^2 + (z - 1.5)^2 = 0.25, 
    x^2 + (y + 2)^2 + (z - 2.25)^2 = 0.25}, {x, -3, 3}, {y, -3, 
    3}, {z, -3, 3}] 

이 오류는 각 플롯에 대해 한 번 세 시간을 제공 :

Set::write: Tag Plus in 7.56014\[VeryThinSpace]+8.99743\[VeryThinSpace]+11.8995 
is Protected. >> 

Set::write: Tag Plus in 6.24786\[VeryThinSpace]+8.99743\[VeryThinSpace]+8.99743 
is Protected. >> 

Set::write: Tag Plus in 6.24786\[VeryThinSpace]+8.99743\[VeryThinSpace]+19.3562 
is Protected. >> 

General::stop: Further output of Set::write will be suppressed during this calculation. >> 
+0

은 "/ verythinspace"는 실제로 얇은 공간 코드의 일부이다. – user1998160

+1

사용 == not =. 방정식에 0.25를 지정하고 있습니다. – Matariki

답변

1

이 = 기호 세트 (할당 및 정의)에 사용되는 작은 구문 오류가 == 기호가 사용됩니다 평등 (평등 검사)에 대한 때문에, 각각의 본문에 ==와 = 대체 ContourPlot 및

이 코드가

을해야합니다 당신은

를 완료 15,
plot1 = ContourPlot3D[{x^2 + (y + 0.25)^2 + (z - 0.45)^2 == 0.25, 
    x^2 + y^2 + (z + 0.5)^2 == 0.25, 
    x^2 + (y + 0.5)^2 + (z - 1.4)^2 == 0.25, 
    x^2 + (y + 0.25)^2 + (z - 2.35)^2 == 0.25, 
    x^2 + y^2 + (z - 3.3)^2 == 0.25, 
    x^2 + (y + 0.25)^2 + (z - 4.25)^2 == 0.25, 
    x^2 + (y + 0.5)^2 + (z - 5.2)^2 == 0.25, 
    x^2 + (y + 0.25)^2 + (z - 6.15)^2 == 0.25, 
    x^2 + y^2 + (z - 7.1)^2 == 0.25}, {x, -3, 3}, {y, -3, 3}, {z, -3, 
    3}] 

예후