kimvote.com 프로그래밍 언어 project > kimvote2 | kimvote.com report

프로그래밍 언어 project > kimvote2

본문 바로가기

kimvote2


[[ 이 포스팅은 제휴마케팅이 포함된 광고로 커미션을 지급 받습니다. ]


프로그래밍 언어 project

페이지 정보

작성일 19-06-17 15:41

본문




Download : 프로그래밍 언어 과제(2).hwp




프로그래밍 언어 project

프로그래밍%20언어%20과제(2)_hwp_01.gif 프로그래밍%20언어%20과제(2)_hwp_02.gif

레포트/공학기술




#include ` stdio.h `
#include ` math.h `

double f(double x)
{
return(xxx);
}

int main()
{
int i, n;
double a, b, h, s0, s1, s2, s, x;

printf(`Input a= `);
scanf(`%lf`, &a);

printf(`Input b= `);
scanf(`%lf`, &b);

printf(`Input n= `);
scanf(`%d`, &n);

h = (b-a)/(2.0n);

printf(`h= %lfn`,h);

s0 = f(a) + f(b);
s1 = 0;
s2 = 0;

printf(`n`);

for(i = 1; i `= 2n-1; i++)
{
x = a+hi;
if(i % 2 0)
{
s2 = s2 + f(x);
}
else
{
s1 = s1 + f(x);
}
}
s = h(s0+4.0s1+2s2)/3.0;

printf(`y0 = %6.4lfn`, f(a));
for(i=1;i`2n-1;i++)
{
x=a+hi;
if(i%2 0) printf(`y%d = %6.4lfn`, i/2, f(x));
}
printf(`y%d = %6.4fn`, n, f(b));

printf(`n [%4.2lf ,%4.2lf]`,a, b);
printf(`n Integral f(x)dx = %lf`, s);
printf(`n`);

retu…(drop)








설명

프로그래밍 언어 project
순서


프로그래밍 언어 과제 , 프로그래밍 언어 과제공학기술레포트 , 프로그래밍 언어




Download : 프로그래밍 언어 과제(2).hwp( 68 )


프로그래밍,언어,공학기술,레포트
다.
REPORT 73(sv75)



해당자료의 저작권은 각 업로더에게 있습니다.

kimvote.com 은 통신판매중개자이며 통신판매의 당사자가 아닙니다.
따라서 상품·거래정보 및 거래에 대하여 책임을 지지 않습니다.
[[ 이 포스팅은 제휴마케팅이 포함된 광고로 커미션을 지급 받습니다 ]]

[저작권이나 명예훼손 또는 권리를 침해했다면 이메일 admin@hong.kr 로 연락주시면 확인후 바로 처리해 드리겠습니다.]
If you have violated copyright, defamation, of rights, please contact us by email at [ admin@hong.kr ] and we will take care of it immediately after confirmation.
Copyright © kimvote.com All rights reserved.