用于开发税务票据管理的软件

源代码在线查看: unit2.pas

软件大小: 36519 K
上传用户: jill
关键词: 软件
下载地址: 免注册下载 普通下载 VIP

相关代码

				unit Unit2;
				
				interface
				USES
				  UNIT1;
				procedure CHEBFT(A, B:real; var C:array of real; N:integer);
				implementation
				procedure CHEBFT(A, B:real; var C:array of real; N:integer);
				var
				       K,J:integer;  SUM,Y,BMA,BPA,FAC:real;
				       F:array[0..50] of real;
				const
				       NMAX = 50;    PI = 3.14159265358979;
				begin
				    BMA:=0.5 * (B - A);
				    BPA:=0.5 * (B + A);
				    For K:=1 To N do
				       begin
				        Y:=Cos(PI * (K - 0.5) / N);
				        F[K]:=FUNC(Y * BMA + BPA);
				    end;
				    FAC:=2/ N;
				    For J:=1 To N do
				       begin
				        Sum:=0 ;
				        For K:=1 To N do
				              begin
				            Sum:=Sum + F[K] * Cos((PI * (J - 1)) * ((K - 0.5) / N));
				        end;
				        C[J]:=FAC * Sum;
				    end;
				end;
				end.
				 			

相关资源