Commit b56783843dcc26cd9c4106c67616283243785478

move example files to correct location
  
1#!/usr/bin/env python
2#-*- mode: python -*-
3
4import convention
5
6from pylab import *
7from mpmath import *
8
9# program start
10data = numpy.zeros((50,50))
11
12for i in range(0,50):
13 for j in range(0,50):
14 coefficient = pi/mpf(12.25)
15 data[i,j] = sin(i*coefficient) * sin(j*coefficient)
16
17
18imshow(data)
19colorbar()
20savefig("show_img.png")
21clf()
22os.system("open show_img.png")
23
24
25# plot grid.Plane
26from fdtd import grid
27plane = grid.Plane(data)
28
29imshow(numpy.array(plane,dtype="float"))
30colorbar()
31savefig("plane.png")
32clf()
33os.system("open plane.png")
  
1#!/usr/bin/env python
2#-*- mode: python -*-
3
4from sympy import *
5
6x = Symbol("x")
7p = Poly((1+x**2)**4, x)
8q = p.diff()
9print p(1)
10print q(1)
show_img.py
(0 / 33)
  
1#!/usr/bin/env python
2#-*- mode: python -*-
3
4import convention
5
6from pylab import *
7from mpmath import *
8
9# program start
10data = numpy.zeros((50,50))
11
12for i in range(0,50):
13 for j in range(0,50):
14 coefficient = pi/mpf(12.25)
15 data[i,j] = sin(i*coefficient) * sin(j*coefficient)
16
17
18imshow(data)
19colorbar()
20savefig("show_img.png")
21clf()
22os.system("open show_img.png")
23
24
25# plot grid.Plane
26from fdtd import grid
27plane = grid.Plane(data)
28
29imshow(numpy.array(plane,dtype="float"))
30colorbar()
31savefig("plane.png")
32clf()
33os.system("open plane.png")
  
1#!/usr/bin/env python
2#-*- mode: python -*-
3
4from sympy import *
5
6x = Symbol("x")
7p = Poly((1+x**2)**4, x)
8q = p.diff()
9print p(1)
10print q(1)