<delect id="sj01t"></delect>
  1. <em id="sj01t"><label id="sj01t"></label></em>
  2. <div id="sj01t"></div>
    1. <em id="sj01t"></em>

            <div id="sj01t"></div>

            感謝您,老師的作文

            時間:2025-10-29 21:44:04 感謝 我要投稿

            感謝您,老師的作文

              解: #include

            感謝您,老師的作文

              main()

              { float integral(float(8p)(float),float a,float b,int n);

              float a1,b1,a2,b2,a3,b3,c,(*p)(float);

              float fsin(float);

              float fcos(float);

              float fexp(float);

              int n=20;

              printf(“Input a1,b1:”);

              scanf(“%f,%f”,&a1,&b2);

              printf(“Input a2,b2:”);

              scanf(“%f,%f”,&a2,&b2);

              printf(“Input a3,b3:”);

              scanf(“%f,%f”,&a3,b3);

              p=fsin;

              c=integral(p,a1,b1,n);

              printf(“The integral of sin(x) is:%f\n”,c);

              p=fcos;

              c=integral(p,a2,b2,n);

              printf(“The integral of cos(x) is :%f\n”,c);

              c=integral(p,a3,b3,n);

              printf(“The integral of sin(x) is :%f\n”,c);

              }

              float integral(float (*p)(float),float a,float b,int n)

              {

              int i;

              floatx,h,s;

              h=(b-a)/n;

              x=a;

              s=0;

              for(i=1;i<=n;i++)

              {x=x+h;

              s=s+(*p)(x)*h;

              }

              return(s);

              }

              float fsin(float x)

              {return sin(x);}

              float fcos(float x)

              {return cos(x);}

              float fexp(float x)

              {return exp(x);}

            【感謝您,老師的作文】相關文章:

            感謝您老師作文12-12

            老師感謝您作文05-24

            (精選)感謝您,老師03-20

            感謝您,老師03-20

            感謝您,老師小學作文09-20

            感謝您,我的老師03-20

            感謝您,老師(優選)05-04

            感謝您老師作文精選20篇07-21

            老師,我真感謝您作文01-31

            感謝您,老師作文(精選50篇)03-12

            <delect id="sj01t"></delect>
            1. <em id="sj01t"><label id="sj01t"></label></em>
            2. <div id="sj01t"></div>
              1. <em id="sj01t"></em>

                      <div id="sj01t"></div>
                      黄色视频在线观看