fork(1) download
  1. # your code goes here
  2. from pylab import*
  3.  
  4. N = 1000
  5. a = 0
  6. b = 1
  7. dx = (b-a)/(N-1)
  8. f0 = 0
  9.  
  10. f = zeros (N)
  11. f[0] = f0
  12. for i in range (N-1):
  13. fder = 5 + f[i]
  14. f[i+1] = f[i] + dx*fder
  15. print (f[0:N:100])
  16.  
Success #stdin #stdout #stderr 1.08s 67232KB
stdin
Standard input is empty
stdout
[0.         0.52613107 1.10762493 1.75030718 2.46061646 3.24566889
 4.11332941 5.07229057 6.13215959 7.3035546 ]
stderr
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(prog:22464): Gdk-CRITICAL **: 14:30:51.469: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(prog:22464): Gdk-CRITICAL **: 14:30:51.488: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed