c语言版的多项式曲线拟合。 用最小二乘法进行曲线拟合. 用p-1 次多项式进行拟合,p<= 10 x,y 的第0个域x[0],y[0],没有用,有效数据从x[1],y[1] 开始 nNodeNum,有效数据节点的个数。 b,为输出的多项式系数,b[i] 为b[i-1]次项。b[0],没有用。 b,有10个元素ok。
上传时间: 2014-01-12
上传用户:变形金刚
PQ分解法,有些还需要改进,该程序所对应的例子是东南大学陈珩编的《电力系统稳态分析(第二版)》的例4-5
标签: 分解
上传时间: 2015-07-16
上传用户:chenlong
crc任意位生成多项式 任意位运算 自适应算法 循环冗余校验码(CRC,Cyclic Redundancy Code)是采用多项式的 编码方式,这种方法把要发送的数据看成是一个多项式的系数 ,数据为bn-1bn-2…b1b0 (其中为0或1),则其对应的多项式为: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:数据“10010101”可以写为多项式 X7+X4+X2+1。 循环冗余校验CRC 循环冗余校验方法的原理如下: (1) 设要发送的数据对应的多项式为P(x)。 (2) 发送方和接收方约定一个生成多项式G(x),设该生成多项式 的最高次幂为r。 (3) 在数据块的末尾添加r个0,则其相对应的多项式为M(x)=XrP(x) 。(左移r位) (4) 用M(x)除以G(x),获得商Q(x)和余式R(x),则 M(x)=Q(x) ×G(x)+R(x)。 (5) 令T(x)=M(x)+R(x),采用模2运算,T(x)所对应的数据是在原数 据块的末尾加上余式所对应的数据得到的。 (6) 发送T(x)所对应的数据。 (7) 设接收端接收到的数据对应的多项式为T’(x),将T’(x)除以G(x) ,若余式为0,则认为没有错误,否则认为有错。
上传时间: 2014-11-28
上传用户:宋桃子
crc任意位生成多项式 任意位运算 自适应算法 循环冗余校验码(CRC,Cyclic Redundancy Code)是采用多项式的 编码方式,这种方法把要发送的数据看成是一个多项式的系数 ,数据为bn-1bn-2…b1b0 (其中为0或1),则其对应的多项式为: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:数据“10010101”可以写为多项式 X7+X4+X2+1。 循环冗余校验CRC 循环冗余校验方法的原理如下: (1) 设要发送的数据对应的多项式为P(x)。 (2) 发送方和接收方约定一个生成多项式G(x),设该生成多项式 的最高次幂为r。 (3) 在数据块的末尾添加r个0,则其相对应的多项式为M(x)=XrP(x) 。(左移r位) (4) 用M(x)除以G(x),获得商Q(x)和余式R(x),则 M(x)=Q(x) ×G(x)+R(x)。 (5) 令T(x)=M(x)+R(x),采用模2运算,T(x)所对应的数据是在原数 据块的末尾加上余式所对应的数据得到的。 (6) 发送T(x)所对应的数据。 (7) 设接收端接收到的数据对应的多项式为T’(x),将T’(x)除以G(x) ,若余式为0,则认为没有错误,否则认为有错
上传时间: 2014-01-16
上传用户:hphh
PEPA模型性能分析工具,对模型进行遍历性检查并求解PEPA模型的稳态概率分布。
上传时间: 2013-12-27
上传用户:徐孺
用matlab编写的用于转子动力学分析的有限元程序,可实现转子临界转速和振型分析、稳态响应和瞬态响应分析等功能。
上传时间: 2013-12-23
上传用户:康郎
二维SIMPLEC程序,包含三个project:二维稳态传热,常粘度系数湍流的动态模拟,湍流中被动标量扩散(基于时均的 k –ε方程. 同时压缩包中还有详细的说明文档. 注意:本程序只限于学习用途,切勿作商业用途,作者享有对此代码及使用目的的最终解释权! Cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc Cccc This computer program was copied from the graduate student course program Cccc of the University of Minnesota. Part of it was re-formulated to meet the Cccc personal computer environment. Some inappropriate expressions were also Cccc corrected. The program is used only for teaching purpose. No part of it Cccc may be published. You may use it as a frame to re-develop your own code Cccc for research purpose. XJTU Instructor, 1995.11 Cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
上传时间: 2015-12-10
上传用户:大三三
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
电流互感器的虚拟检测系统.应用虚拟仪器技术,研制出一套适用于电流互感器稳态准确度和暂态饱和特性的检测系统。这套虚拟检测系统具有测量、显示和分析等功能,可以通过数字和图形方式自动给测量和分析的结果,适用于二次额定电流为5A及以下各种类型电流互感器的检测。
上传时间: 2016-01-21
上传用户:xwd2010
根据基尔霍夫定律:节点上∑i=0和回路中∑u=0这两个公式,无论是在正旋稳态下还是在暂稳态电路中表达网络变量间的关系时都只取决于网络的布局即节点和支路的相互关系,而与支路的特性即支路由那些元件组成及其参数的量值都没有关系。因此当我们根据网络来建立节点电流方程及回路电压方程时,无须画出电路元件。这种节点与支路相互关系以表示电路结构的图,称为网络的图。在网络的图中,为建立KCL、KVL方程,取支路电压、支路电流关联参考方向,在图中的支路上标明。
上传时间: 2016-02-16
上传用户:gdgzhym