ここではz軸に沿って直線状に分布している電荷による電位と電界を表示してみよう。
このときの電位は定数項をはぶき、R=1のところで電位が0になるとすれば簡単にv=log(1/R)のようになる。ただしプログラムでは、R=0で発散するのを防ぐようにする。
![[Graphics:Images/index_gr_1.gif]](Images/index_gr_1.gif)
![[Graphics:Images/index_gr_2.gif]](Images/index_gr_2.gif)
![[Graphics:Images/index_gr_3.gif]](Images/index_gr_3.gif)
等電位面をv=0[v]とv=-0.5[V]で表示させてみると、z軸を中心とする円筒になっていることがわかる。これを上から眺めれば以下のようになるだろう。
![[Graphics:Images/index_gr_6.gif]](Images/index_gr_6.gif)
次に電界の表示をしてみよう。
![[Graphics:Images/index_gr_9.gif]](Images/index_gr_9.gif)
![[Graphics:Images/index_gr_10.gif]](Images/index_gr_10.gif)
![[Graphics:Images/index_gr_11.gif]](Images/index_gr_11.gif)
これを上からみれば、
![[Graphics:Images/index_gr_14.gif]](Images/index_gr_14.gif)
![[Graphics:Images/index_gr_15.gif]](Images/index_gr_15.gif)
最後に三次元の図を重ね合わせてみる。等電位面に対して電界のベクトルが垂直になっていることがわかる。z軸に沿った線電荷から放射状に電界が発生しており、等電位面は直線電荷を包み込む円柱の面になっていることがわかる。
![[Graphics:Images/index_gr_18.gif]](Images/index_gr_18.gif)