登录
首页 » Visual C++ » na7

na7

于 2011-11-27 发布 文件大小:1KB
0 410
下载积分: 1 下载次数: 80

代码说明:

  Orthogonal Polynomials Approximation 数值分析,计算正交基多项式的系数 (Given a function f and a set of m >0 distinct points . You are supposed to write a function to approximate f by an orthogonal polynomial using the exact function values at the given m points with a weight assigned to each point . The total error must be no larger than a given tolerance. Format of function int OPA( double (*f)(double t), int m, double x[], double w[], double c[], double*eps ) where the function pointer double (*f)(double t) defines the function f int m is the number of points double x[] contains points double w[] contains the values of a weight function at the given points x[] double c[] contains the coefficients of the approximation polynomial double*eps is passed into the function as the tolerance for the error, and is supposed to be returned as the value of error. The function OPA is supposed to return the degree of the approximation polynomial. Note: a constant Max_n is defined so that if the total error is still not small enough when n = Ma)

文件列表:

na7.cpp,4031,2011-11-25

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • zipf-random
    随机数生成程序,该随机数呈zipf分布,就是大家常说对于内容的访问遵循80/20原则,也就是20 的内容,会占有80 的访问量。(Random number generator, the zipf was distributed random numbers, that is, we often say that the access to the content to follow the 80/20 principle, which is 20 of the content will occupy 80 of visits.)
    2013-06-27 17:56:45下载
    积分:1
  • wedg140
    fortran程序,计算应力强度因子和特征值和特征向量,研究多种材料接触(fortran program)
    2014-09-22 10:47:40下载
    积分:1
  • fft
    FFT快速傅里叶变换,用于数字信号处理,大大提高了运行速度,节省内存开销。C语言实现(FFT fast Fourier transform for digital signal processing, greatly improving the speed and save memory overhead. C language)
    2011-05-30 00:54:58下载
    积分:1
  • Computational-Science-codes
    开发环境没有可选项,fortran90,Fortran_90_and_Computational_Science-_codes(Computational Science codes by fortran90 )
    2013-10-10 17:07:12下载
    积分:1
  • Rongekutta
    四阶龙格库塔法函数更新四元数程序代码,采用VC编写(Fourth-order Runge-Kutta method function is updated quaternion code)
    2010-03-03 21:53:15下载
    积分:1
  • bp
    说明:  c++编程bp神经网络,用c++语言编写的bp神经网络(C++ programming bp neural network, bp neural network written in c++ language.)
    2018-04-28 15:09:52下载
    积分:1
  • EedffazipD
    EDFA的掺铒光纤长度模拟计算,附3篇相关论文,330mw的980nm泵泵浦,3db的泵浦吸收,12m最佳长度已经的到验证,可作为EDFA设计参考 (EDFA erbium-doped fiber length simulation of three related papers, 330mw of 980nm pump pump pump 3db absorption 12m optimum length has been to verify, can be used as the EDFA design reference)
    2012-08-05 18:09:17下载
    积分:1
  • Calculator2
    这是一个小型计算器,功能强大,用户输入想要计算的数据,即可自行计算出结果。(This is a program about calculator,and it is very userful.)
    2012-10-08 10:21:39下载
    积分:1
  • Euler_DG_Quadrilateral_2D
    自己写了一个二维Euler方程的间断有限元程序 上次发了一个三角形单元的程序 因为不是曲边单元 所以在圆柱后面容易形成涡 现在把程序改为曲边四边形单元了 没有涡出现 单元是8节点四边形单元 节点编号顺序是 1 5 2 6 3 7 4 8 也就是四个角点依次 是1 2 3 4 然后是边的中点编号 5 6 7 8. 时间推进采用 Runge-Kutta 方法 数值通量采用全局Lax-Friedrichs通量 仍然不能捕捉激波 因为没有做重构或者加人工粘性 等这个做出来了 再发一次。 程序没有进行优化 比如说内存的消耗没有优化 比如直边单元的边界积分仍然采 用了曲边的积分方法 增加了计算量 比如面积分、线积分都是采用的是Gauss- Legendre-Lobatto积分 积分精度会比一般的Gauss-Legendre积分精度低一阶 等 等问题。 二维的 纯属交流性质 就没有考虑这些问题 ^_^ 如果物面全部是直边 那么只要改变一个参数N 就可以获得不同的计算精度 且具 有谱精度 因为单元的节点是Gauss-Legendre-Lobatto积分点。 其实就是谱元法 (物面是曲边的情况我不清楚是不是也可以通过提高基函数的阶数 也就是增加N 来提高计算精度)(Wrote a two-dimensional Euler equations with discontinuous finite element program Last made ​ ​ a triangular element of the program, not curved edge unit is so easy to form a vortex in the cylinder behind the Program to curved edge quadrilateral element vortices appear Unit is the order of 8-node quadrilateral element node number is 15,263,748 which is the four corners of the points in turn Is 1234 and then the side of the midpoint of the number 5678. Time promote the use of Runge-Kutta method Numerical flux of the overall situation of Lax-Friedrichs, flux Still can not capture the shock wave did not do the reconstruction or artificial viscosity do it Zaifayici. The program is not optimized for example, memory consumption is not optimized such as straight-edge boundary integral of the unit is still mining Integral method to increase the amount of computation such as surface integral with a curved edge, the line integral using the Gauss- The Legendr)
    2021-01-29 12:58:40下载
    积分:1
  • Matrix
    很好用的有关矩阵的各种操作,包括求逆,特征值,特征向量,svd分解等(good part of the matrix of various operations including inverse, eigenvalues, eigenvectors, svd decomposition, etc.)
    2020-10-31 16:39:55下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载