看板 Mathematica 關於我們 聯絡資訊
我想解一個Laplace's Equation 比方說下面這個文件第三頁這種例題 http://www.robots.ox.ac.uk/~jmb/lectures/pdelecture5.pdf 輸入 NDSolve[{D[u[x, y], x, x] + D[u[x, y], y, y] == 0, u[0, y] == 0, u[x, 0] == 0, u[3, y] == 0, u[x, 4] == Sin[Pi/3*x]}, u, {x, 0, 3}, {y, 0, 4}] 結果她回傳 NDSolve::ivone: Boundary values may only be specified for one independent variable. Initial values may only be specified at one value of the other independent variable. 請問哪裡寫錯了 謝謝~ -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.110.200.36 ※ 文章網址: https://www.ptt.cc/bbs/Mathematica/M.1428574255.A.9BC.html
Serenede: 我把你的code完全複製貼上似乎沒問題 04/12 01:31
Serenede: DensityPlot[u[x, y] /. %, {x, 0, 3}, {y, 0, 4}] 04/12 01:36
Serenede: 就可以畫出所需要的圖 04/12 01:37
Serenede: 所以你再檢查一下吧,問題可能出在別的地方 04/12 01:37
Absolitude: 還是找不到問題,怪了。請問你是第幾版的? 04/12 02:59
Absolitude: 我是第七版的 04/12 03:00
GirlInBlack: Mathematica 10是OK的 04/12 06:43
Serenede: 我也是10 04/13 11:11
Absolitude: 謝謝~ 不過還是不行>"< 04/13 18:58