当前位置: 首页 > news >正文

大气网络公司网站模板如何自己建造网站

大气网络公司网站模板,如何自己建造网站,小程序代理哪家好济宁,搭建科技网站价格算法对序列的收敛加速。初始化方式使用参数nmax调用构造函数#xff0c;nmax是要求和的项数#xff0c;以及eps#xff0c;即所需的精度。然后连续调用next函数#xff0c;参数为next部分和序列的。序列极限的当前估计值为next返回。检测到收敛设置标志cnvgd。 using Syst… 算法对序列的收敛加速。初始化方式使用参数nmax调用构造函数nmax是要求和的项数以及eps即所需的精度。然后连续调用next函数参数为next部分和序列的。序列极限的当前估计值为next返回。检测到收敛设置标志cnvgd。 using System; namespace Legalsoft.Truffer {     /// summary     /// Convergence acceleration of a sequence by the algorithm.Initialize by     /// calling the constructor with arguments nmax, an upper bound on the     /// number of terms to be summed, and epss, the desired accuracy.Then make     /// successive calls to the function next, with argument the next partial sum     /// of the sequence. The current estimate of the limit of the sequence is      /// returned by next.The flag cnvgd is set when convergence is detected.     /// /summary     public class Epsalg     {         private double[] e { get; set; }         private int n { get; set; }         private int ncv { get; set; }         public bool cnvgd { get; set; }         /// summary         /// Numbers near machine underflow and overflow limits.         /// /summary         private double eps { get; set; }         private double small { get; set; }         private double big { get; set; }         private double lastval { get; set; }         private double lasteps { get; set; } public Epsalg(int nmax, double epss)         {             this.e new double[nmax];             this.n 0;             this.ncv 0;             this.cnvgd false;             this.eps epss;             this.lastval 0.0;             small float.MinValue * 10.0;             big double.MaxValue;         } public double next(double sum)         {             e[n] sum;             double temp2 0.0;             for (int j n; j 0; j--)             {                 double temp1 temp2;                 temp2 e[j - 1];                 double diff e[j] - temp2;                 if (Math.Abs(diff) small)                 {                     e[j - 1] big;                 }                 else                 {                     e[j - 1] temp1 1.0 / diff;                 }             }             n;             double val (n 1) ! 0 ? e[0] : e[1];             if (Math.Abs(val) 0.01 * big)             {                 val lastval;             }             lasteps Math.Abs(val - lastval);             if (lasteps eps)             {                 ncv 0;             }             else             {                 ncv;             }             if (ncv 3)             {                 cnvgd true;             }             return (lastval val);         } } }
http://www.zqtcl.cn/news/595314/

相关文章:

  • 营销型网站的优缺点如何在腾讯云做网站
  • 现在做网站怎么样网站运营与管理规划书
  • 国际物流公司网站建设有关应用网站
  • 网站后台维护技能娱乐公司网站模板
  • 有建网站的公司吗p2p理财网站开发要求
  • 做私单的网站高端html5网站设计工作室织梦模板 dedecms5.7
  • 视频网站切片怎么做如何做网站结构及栏目策划
  • 公司和网站备案查询龙江网站建设公司
  • 建一个平台网站需要多少钱安徽网站建设大全
  • 做网站接广告网站注册页面怎么做
  • 西安建站价格表电脑做视频的网站比较好
  • 建筑中级职称查询网站百度指数功能模块
  • 建设网站只慧聪网怎样做网站友情链接
  • 德阳网站开发dedecms5.7装饰公司网站模板
  • 下步我院将建设网站信息保密浙江温州网络公司
  • 一键建站网站seo关键词快速排名介绍
  • 自己做网站 什么wordpress博客文章加密
  • 怎样做音视频宣传网站wordpress 推送
  • 网站图片上传代码专业的企业进销存软件定制
  • 商品网站模板wordpress文章推荐
  • 十里堡网站建设做吃的教程网站
  • 比较好的源码网站河南网站seo推广
  • 做网站推广什么好网站界面结构
  • 龙岗网站优化常见的渠道推广方式有哪些
  • wordpress 后台乱码成都百度推广优化
  • 大连 响应式网站wordpress保存图片不显示
  • 二手车网站建站网站建设企业建站要求
  • 海山免费网站建设做视频网站如何赚钱
  • 网站增加点击率 怎样做小店面设计装修网
  • 一 美食 视频网站模板下载安装外国优秀网站欣赏