Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public:static double fn(double T,double x)
  2. {
  3. if (x>=0)
  4. return T;
  5. else if(x<0)
  6. return 0;
  7. }
  8.  
  9. public: void drawfunc(double T)
  10. {
  11. double xmin = -5;
  12. double xmax = 10;
  13. for(double x = xmin;x<xmax;x+=0.01)
  14. {
  15. chart1->Series["Series1"]->Points->AddXY(x,fn(T,x));
  16. }
  17. }
  18.  
  19. public:void draw(double U,double T)
  20. {
  21. double xmin=-5;
  22. double xmax=10;
  23. for(double x=xmin;x<xmax;x+=0.01)
  24. chart1->Series["Line"]->Points->AddXY(x,heviside(T));
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement