/[escript]/trunk/doc/examples/cookbook/example10a.py
ViewVC logotype

Diff of /trunk/doc/examples/cookbook/example10a.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5593 by jfenwick, Fri Apr 24 01:36:26 2015 UTC revision 5705 by sshaw, Mon Jun 29 01:07:07 2015 UTC
# Line 122  if HAVE_FINLEY and HAVE_NATGRID: Line 122  if HAVE_FINLEY and HAVE_NATGRID:
122    
123      pl.clf()      pl.clf()
124    
125      r=np.linspace(0.0000001,mx/2,100)   # starting point would be 0 but that would cause division by zero later      r=np.linspace(0.0000001,mx/2,100)   # starting point would be 0 but that would cause division by zero later
126      m=2*pl.pi*10*10*200*-G/(r*r)      m=2*pl.pi*10*10*200*-G/(r*r)
127    
128      pl.plot(xi,zi[:,cut])      pl.plot(xi,zi[:,cut])

Legend:
Removed from v.5593  
changed lines
  Added in v.5705

  ViewVC Help
Powered by ViewVC 1.1.26