-
# include<stdio.h>
# include<math.h>
# define N 3
Main(){
float NF2(float *x,float *y);
float A[N][N]={{10,-1,-2},{-1,10,-2},{-1,-1,5}};
float b[N]={7.2,8.3,4.2},sum=0;
float x[N]= {0,0,0},y[N]={0},x0[N]={};
int i,j,n=0;
for(i=0;i<N;i++)
{
x[i]=x0[i];
}
for(n=0;;n++){
//計算下一個值
for(i=0;i<N;i++){
sum=0;
for(j=0;j<N;j++){
if(j!=i){
sum=sum+A[i][j]*x[j];
}
}
y[i]=(1/A[i][i])*(b[i]-sum);
//sum=0;
}
//判斷誤差大小
if(NF2(x,y)>0.01){
for(i=0;i<N;i++){
x[i]=y[i];
}
}
else
break;
}
printf("經過%d次雅可比迭代解出方程組的解:\n",n+1);
for(i=0;i<N;i++){
printf("%f ",y[i]);
}
}
//求兩個向量差的二范數函數
float NF2(float *x,float *y){
int i;
float z,sum1=0;
for(i=0;i<N;i++){
sum1=sum1+pow(y[i]-x[i],2);
}
z=sqrt(sum1);
return z;
}
標簽:
C語言
編寫
迭代
上傳時間:
2019-10-13
上傳用戶:大萌萌撒
-
Smart Grids provide many benefits for society. Reliability, observability across the
energy distribution system and the exchange of information between devices are just
some of the features that make Smart Grids so attractive. One of the Main products of
a Smart Grid is to data. The amount of data available nowadays increases fast and carries
several kinds of information. Smart metres allow engineers to perform multiple
measurements and analyse such data. For example, information about consumption,
power quality and digital protection, among others, can be extracted. However, the Main
challenge in extracting information from data arises from the data quality. In fact, many
sectors of the society can benefit from such data. Hence, this information needs to be
properly stored and readily available. In this chapter, we will address the Main concepts
involving Technology Information, Data Mining, Big Data and clustering for deploying
information on Smart Grids.
標簽:
Processing
Cities
Smart
Data
in
上傳時間:
2020-05-23
上傳用戶:shancjb
-
Smart Grids provide many benefits for society. Reliability, observability across the
energy distribution system and the exchange of information between devices are just
some of the features that make Smart Grids so attractive. One of the Main products of
a Smart Grid is to data. The amount of data available nowadays increases fast and carries
several kinds of information. Smart metres allow engineers to perform multiple
measurements and analyse such data. For example, information about consumption,
power quality and digital protection, among others, can be extracted. However, the Main
challenge in extracting information from data arises from the data quality. In fact, many
sectors of the society can benefit from such data. Hence, this information needs to be
properly stored and readily available. In this chapter, we will address the Main concepts
involving Technology Information, Data Mining, Big Data and clustering for deploying
information on Smart Grids.
標簽:
Processing
Cities
Smart
Data
上傳時間:
2020-05-25
上傳用戶:shancjb
-
The rapid growth of the Web in the past two decades has made it the larg-
est publicly accessible data source in the world. Web mining aims to dis-
cover useful information or knowledge from Web hyperlinks, page con-
tents, and usage logs. Based on the primary kinds of data used in the
mining process, Web mining tasks can be categorized into three Main
types: Web structure mining, Web content mining and Web usage mining.
標簽:
Mining
Data
Web
上傳時間:
2020-05-26
上傳用戶:shancjb
-
Duringthe past years, there has been a quickly rising interest in radio access technologies for providing
mobile as well as nomadic and fixed services for voice, video, and data. This proves that the difference
in design, implementation, and use between telecom and datacom technologies is also becoming more
blurred. What used to be a mobile phone used for voice communication is today increasingly
becoming the Main data communication device for end-users, providing web browsing, social
networking, and many other services.
標簽:
LTELTE-Advanced
4G
上傳時間:
2020-05-26
上傳用戶:shancjb
-
Evolutionary Computation (EC) deals with problem solving, optimization, and
machine learning techniques inspired by principles of natural evolution and ge-
netics. Just from this basic definition, it is clear that one of the Main features of
the research community involved in the study of its theory and in its applications
is multidisciplinarity. For this reason, EC has been able to draw the attention of
an ever-increasing number of researchers and practitioners in several fields.
標簽:
Applications
Evolutionary
Computing
of
上傳時間:
2020-05-26
上傳用戶:shancjb
-
Multiple-Input Multiple-Output (MIMO) systems have recently been the
subject of intensive consideration in modem wireless communications as they
offer the potential of providing high capacity, thus unleashing a wide range of
applications in the wireless doMain. The Main feature of MIMO systems is the
use of space-time processing and Space-Time Codes (STCs). Among a variety
of STCs, orthogonal Space-Time Block Codes (STBCs) have a much simpler
decoding method, compared to other STCs
標簽:
Orthogonal
Space-Time
Processing
Complex
上傳時間:
2020-05-26
上傳用戶:shancjb
-
In cellular networks, it is estimated that
2
3
of calls and over 90% of data services occur
indoors. However, some surveys show that many households and businesses experience
a poor indoor coverage problem. It has been identified that poor coverage is the Main
reason for churn, which is very costly for operators in saturated markets. How to provide
good indoor coverage cost effectively is thus a demanding challenge for operators.
標簽:
Technologies
Femtocells
Deployment
and
上傳時間:
2020-05-27
上傳用戶:shancjb
-
This book is an entry-level text on the technology of telecommunications. It has been
crafted with the newcomer in mind. The twenty-one chapters of text have been prepared
for high-school graduates who understand algebra, logarithms, and the basic principles of
electricity such as Ohm’s law. However, it is appreciated that many readers require support
in these areas. Appendices A and B review the essentials of electricity and mathematics
up through logarithms. This material was placed in the appendices so as not to distract
from the Main theme, the technology of telecommunication systems. Another topic that
many in the industry find difficult is the use of decibels and derived units. Appendix C
provides the reader a basic understanding of decibels and their applications. The only
mathematics necessary is an understanding of the powers of ten
標簽:
Telecommunications
Fundamentals
2nd
of
ed
上傳時間:
2020-05-27
上傳用戶:shancjb
-
The writing of this book was prompted by two Main developments in wireless
communications in the past decade. First is the huge surge of research activities in
physical-layer wireless communication theory. While this has been a subject of study
since the 60’s, recent developments in the field, such as opportunistic and multi-input
multi-output (MIMO) communication techniques, have brought completely new per-
spectives on how to communicate over wireless channels.
標簽:
Communication
Fundamentals
Wireless
of
上傳時間:
2020-05-27
上傳用戶:shancjb