fork download
  1. # Generated with SMOP 0.41-beta
  2. from libsmop import *
  3. # m.m
  4.  
  5. x1=0
  6. # m.m:1
  7. x2=2
  8. # m.m:1
  9. a=1
  10. # m.m:1
  11. u=arange(x1,x2,0.1)
  12. # m.m:3
  13. v=arange(0,dot(2,pi),pi / 20)
  14. # m.m:5
  15. U,V=meshgrid(u,v,nargout=2)
  16. # m.m:7
  17. F=dot(a,(exp(- U / a) + exp(U / a))) / 2
  18. # m.m:9
  19. X=copy(U)
  20. # m.m:11
  21. Y=multiply(F,cos(V))
  22. # m.m:11
  23. Z=multiply(F,sin(V))
  24. # m.m:11
  25. figure
  26. hFigure=copy(gcf)
  27. # m.m:13
  28. set(hFigure,'Color',concat([0.9,0.8,0.8]))
  29. surf(X,Y,Z)
  30. colorbar
  31. view(concat([- 75,20]))
  32. hold('on')
  33. x=arange(0,x0,0.1)
  34. # m.m:25
  35. y=dot(a,(exp(- x / a) + exp(x / a))) / 2
  36. # m.m:25
  37. hPlot=plot(x,y)
  38. # m.m:27
  39. set(hPlot,'LineWidth',5)# your code goes here
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError: Sorry: IndentationError: unexpected indent (prog.py, line 5)
stdout
Standard output is empty