검색어 입력폼

# Least-Squares Regression을 이용한 문제풀이

저작시기 2007.03 |등록일 2008.03.10 한글 (hwp) | 11페이지 | 가격 800원

## 소개글

기계과 수치해석 연습문제를 풀이과정,comment,코딩프로그램을 정리한 A+과제^^

## 목차

Problem 1
Solution
Problem 2
Solution
Problem 3
Solution
Program
List
(Problem 1에 대한 코딩)
Program
List
(problem 3에 대한 코딩)

## 본문내용

Problem 1
Population growth models are important in many fields of engineering. Fundamental to many of the models is the assumption that the rate of change of the population(dp/dt)is proportional to the actual population (p) at any time (t), or in equation form, where k=a proportionality factor called the specific growth rate and has units of . If k is a constant, then the solution of Eq. (20.1) can be obtained from the theory of differential equation:
where the population when t=0. It is observed that p(t) in Eq. (20.2) approaches infinity as t becomes large. This behavior is clearly impossible for real systems. Therefore, the model must be modified to make it more realistic.

#include
#include
#include
void main()
{
double x[11]={0.14286,0.11111,0.06666,0.04000,0.02500,0.01333
,0.01000,0.00666};
double y[11]={3.448,2.703,2.083,1.538,1.250,1.031,1.010
,0.935};
double a1,a0,xm,ym;
double n=8,sumx=0,sumy=0,sumxy=0,sumx2=0;
int count;
for(count=0;count {
sumx=sumx+x[count];
sumy=sumy+y[count];
sumxy=sumxy+x[count]*y[count];
sumx2=sumx2+x[count]*x[count];
}