實驗題目:Hermite插值多項式 相關知識:通過n+1個節點的次數不超過2n+1的Hermite插值多項式為: 其中,Hermite插值基函數 數據結構:三個一維數組或一個二維數組 算法設計:(略) 編寫代碼:(略) 實驗用例: 已知函數y=f(x)的一張表(其中 ): x 0.10 0.20 0.30 0.40 0.50 y 0.904837 0.818731 0.740818 0.670320 0.606531 m -0.904837 -0.818731 -0.740818 -0.670320 -0.606531 x 0.60 0.70 0.80 0.90 1.00 y 0.548812 0.496585 0.449329 0.406570 0.367879 m -0.548812 -0.496585 -0.449329 -0.406570 -0.367879 實驗用例:利用Hermite插值多項式 求被插值函數f(x)在點x=0.55處的近似值。建議:畫出Hermite插值多項式 的曲線。
上傳時間: 2013-12-24
上傳用戶:czl10052678
#include "iostream.h" #include "iomanip.h" #define N 20 //學習樣本個數 #define IN 1 //輸入層神經元數目 #define HN 8 //隱層神經元數目 #define ON 1 //輸出層神經元數目 double P[IN] //單個樣本輸入數據 double T[ON] //單個樣本教師數據 double W[HN][IN] //輸入層至隱層權值 double V[ON][HN] //隱層至輸出層權值 double X[HN] //隱層的輸入 double Y[ON] //輸出層的輸入 double H[HN] //隱層的輸出
標簽: define include iostream iomanip
上傳時間: 2014-01-01
上傳用戶:凌云御清風
int main(int argc,char *argv[]) { char ch while(true) { printf("*************************************\n") printf(" 1.Reader Priority\n") printf(" 2.Writer Priority\n") printf(" 3.Exit to Windows\n") printf("*************************************\n") printf("Enter your choice(1,2,3): ") do{ ch=(char)_getch() }while(ch!= 1 &&ch!= 2 &&ch!= 3 ) system("cls") if(ch== 3 ) return 0 else if(ch== 1 ) ReaderPriority("thread.dat") else WriterPriority("thread.dat") printf("\nPress Any Key to Coutinue:") _getch() system("cls") } return 0
上傳時間: 2017-01-06
上傳用戶:gonuiln
La designaci貿n Modbus Modicon corresponde a una marca registrada por Gould Inc. Como en tantos otros casos, la designaci貿n no corresponde propiamente al est謾ndar de red, incluyendo todos los aspectos desde el nivel f鉚sico hasta el de aplicaci貿n, sino a un protocolo de enlace [nivel OSI 2]. Puede, por tanto, implementarse con diversos tipos de conexi貿n f鉚sica y cada fabricante suele suministrar un software de aplicaci貿n propio, que permite parametrizar sus producto
標簽: corresponde registrada designaci Modicon
上傳時間: 2014-12-01
上傳用戶:梧桐
Bardzzo przydatny skrypt do nauki matlaba nie tylko dla pocz膮tkuj膮cych ale r貿wniez dla tych kt貿偶y chc膮 pog艂臋bi膰 swoj膮 wiedz臋
標簽: przydatny dla Bardzzo matlaba
上傳時間: 2017-05-13
上傳用戶:hakim
steppedchirp子函數產生一個子脈沖數為N的步進頻信號,子脈沖為chirp信號,參數可在main函數中設置,結果保存在數組y[]中。
標簽: steppedchirp 函數 信號 脈沖
上傳時間: 2017-09-12
上傳用戶:haohaoxuexi
steppedchirp子函數產生一個子脈沖數為N的步進頻信號,子脈沖為chirp信號,參數可在main函數中設置,結果保存在數組y[]中。
標簽: steppedchirp 函數 信號 脈沖
上傳時間: 2013-12-16
上傳用戶:txfyddz
#include "string.h" #include "ctype.h" #include "stdio.h" search(char pd[]) {FILE *fp; int time=0,i=0,j=0,add[80],k=0,m; char *ch, str[900]; m=strlen(pd); if((fp=fopen("haha.txt","r"))==NULL) { printf("Cannot open this file\n"); exit(0); } for(;!feof(fp);i++) { str[i]=fgetc(fp); if(tolower(str[i])==tolower(pd[k])) {k++; if(k==m) if(!isalpha(i-m)&&!isalpha((str[i++]=fgetc(fp)))) { time++; add[j]=i-m+1; j++; k=0; } else k=0; } } if(time) { printf("The time is:%d\n",time); printf("The adders is:\n"); for(i=0;i<j;i++) printf("%5d",add[i]); if(i%5==0) printf("\n"); getch(); fclose(fp); } else printf("Sorry!Cannot find the word(^_^)"); } main() { char pd[10],choose='y'; int flag=1; while(flag) {printf("In put the word you want to seqarch:"); scanf("%s",pd); search(strlwr(pd)); printf("\nWould you want to continue?(Y/N):"); getchar(); scanf("%c",&choose); if((tolower(choose))=='n') flag=0; else flag=1; } printf("Thanks for your using!Bye-bye!\n"); getch(); }
標簽: 學生專用
上傳時間: 2016-12-29
上傳用戶:767483511
%========================開始提取加噪信號的各類特征值================================ for n=1:1:50; m=n*Ns; x=(n-1)*Ns; for i=x+1:m; %提取加噪信號'signal_with_noise=y+noise'的前256個元素,抽取50次 y0(i)=signal_with_noise(i); end Y=fft(y0); %對調制信號進行快速傅里葉算法(離散) y1=hilbert(y0) ; %調制信號實部的解析式 factor=0; %開始求零中心歸一化瞬時幅度譜密度的最大值gamma_max for i=x+1:m; factor=factor+y0(i); end ms=factor/(m-x); an_i=y0./ms; acn_i=an_i-1; end gamma_max=max(fft(acn_i.*acn_i))/Ns
上傳時間: 2020-04-07
上傳用戶:如拷貝般復制
N系列射頻同軸連接器
上傳時間: 2013-06-29
上傳用戶:eeworm