[수치계산,수치해석] c 프로그래밍
- 최초 등록일
- 2004.10.26
- 최종 저작일
- 2004.10
- 2페이지/ 한컴오피스
- 가격 2,500원
소개글
a+자료
목차
bairstow 법 에 의해 c로 짠 프로그램..
베어스트로우법..
본문내용
/* Bairstow Scheme */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define TRUE 1
/* a[i] : coefficients of the polynomial (다항식의 계수)
b[i] : coefficients in Eq. Q(x) and Eq. R(x)
eps : toerance of convergence (수렴 오차)
n : order of polynomial (다항식의 차수)
p, q : p and q
p_ini, q_ini: initial guess for p and q(arbitrary)
dp, dq : Greek "delta" p, and Greek "delta" q, respcetively
*/
main()
{
int i, i_ , k, n, iter;
float a[11], b[11],bp[11],bq[11], dn, dp,dq, p, q, rt, eps, zz;
static float p_ini=0, q_ini=0; /* any arbitray initial guess */
printf ( " Bairstow Scheme \n" );
printf ( "\nShould zero-divide occur, alter the values for");
printf ( "\np_ini and q_ini and rerun the program. \n") ;
while( TRUE ) {
참고 자료
없음