Tuesday, 7 November 2017

                                              plot for ( x^3+3(x)^2+3x)

                       program:-

  1. clf();
  2. x=linspace(-1,1,50)
  3. y=x.^3+3.*(x.^2)+3.*x;
  4. plot(x,y,'r')
  5. xgrid(1);

                         output:-




this the output of above program

No comments:

Post a Comment