登录
首页 » Visual C++ » Factorial

Factorial

于 2011-12-22 发布 文件大小:854KB
0 338
下载积分: 1 下载次数: 6

代码说明:

  C++的求阶乘的程序,对本科C++课程可能有些帮助(Factorial in C++ program, it maybe helpful for some C++ course)

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

发表评论

0 个回复

  • 82859165cifa
    编程序,按如下要求来求解n元一次线性方程组(假设方程组具有唯一解)。 (1)方程个数n之值由用户通过键盘输入; (2)方程组存放在“增广矩阵”A之中,而n行n+1列的A存储空间通过new来动态分配,且A的各元素值也由用户通过键盘输入 (Allocation procedures, the following requirements to solve the n-a system of linear equations (assuming a unique solution of equations). (1) the number n of the value equation by the user through the keyboard input (2) equations stored in the augmented matrix A, while n line n+ 1 column A storage space through the new dynamically allocated, and A The value of each element by the user through the keyboard input)
    2011-06-21 22:50:34下载
    积分:1
  • torpedo
    1) 应用C语言编写程序,计算弹道,并绘制结果曲线。 给出系统脱靶量统计结果(用蒙特卡洛法)。 (torpedo)
    2010-11-26 21:19:01下载
    积分: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
  • registration
    point cloud 点云配准计算,通过选择几组匹配的点云数据对对点云数据进行配准处理(point cloud point cloud registration computing, by selecting a set of match point cloud data point cloud data registration process)
    2016-01-12 11:03:05下载
    积分:1
  • niudunfa
    计算方法实验,通过编程实现埃特金加速法,一般迭代法,牛顿法的收敛次数的计算(calculated experiment, Programming Aitken acceleration method, the general iterative method, the convergence of Newton's method of calculating the number of)
    2006-05-31 08:48:47下载
    积分:1
  • shenliu
    有限元计算基本程序,为毕业论文时编写的局部渗流计算程序。(Finite element method the basic procedures for the thesis prepared by local seepage calculation procedures.)
    2007-08-20 14:00:54下载
    积分:1
  • 35
    说明:  四级四阶龙格库塔格式,求解微分方程的好算法。(Four fourth-order Runge-Kutta format, a good algorithm for solving differential equations.)
    2010-07-07 11:33:03下载
    积分:1
  • Nnnrrfxxfce
    牛顿法计算方程,能计算非线性方程/方程程组,有需要的能试试,主要是数学方法的实现 (Newton method to calculate the equation to calculate the nonlinear equation/equation of equations, needs to try, mainly the implementation of the mathematical methods)
    2012-08-20 07:22:55下载
    积分:1
  • fluentcas
    fluent 软件动网格计算的CAS文件和二次开发程序。用来计算一个蜜蜂翅膀摆动时周围流畅的变化。(fluent moving grid computing, software, documents and secondary development of CAS procedures. Used to calculate the wings of a bee when swinging around the smooth changes.)
    2020-11-03 11:19:53下载
    积分:1
  • 55875587Calculator
    MFC做的计算器程序,可以实现加减乘除。平方,立方等功能(MFC to do calculator program can be achieved subtraction multiplication and division. Square, cubic and other functions)
    2009-12-12 22:24:25下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载