The situation is such
There are such methods, where T is an input parameter that is entered from the keyboard (for example, T = 4)
public:static double fn(double T,double x) { if (x>=0) return T; else if(x<0) return 0; } public: void drawfunc(double T) { double xmin = -5; double xmax = 10; for(double x = xmin;x<xmax;x+=0.01) { chart1->Series["Series1"]->Points->AddXY(x,fn(T,x)); } } They draw this graph of the function.
But it is necessary that the method be with one parameter and draw as well as with 2 parameters. However, if I do it with one parameter, and I make the 2nd variable a local variable.
public:static double heviside(double T) { double x=0; if ( x>=0) return T; else if(x<0) return 0; } public:void draw(double U,double T) { double xmin=-5; double xmax=10; for(double x=xmin;x<xmax;x+=0.01) chart1->Series["Line"]->Points->AddXY(x,heviside(T)); } That function graph is drawn this way. 
QUESTION!
How can I make the function draw the 1st graph but with the 1st parameter of the function fn (double T)?
