搜索资源列表
PolyFitSingle
- //=== === === === === === === = //函数说明 //函数名称:PolyFit //函数功能:最小二乘法曲线拟合 //使用方法:double *x ---- 存放n个数据点的X坐标 // double *y ---- 存放n个数据点的Y坐标 // int n -------- 给定数据点个数 // double *a ---- 返回m-1次拟合多项式的m个系数 // int m -------- 拟合多项式的项数,即拟合多项式的
qiujuzhendezhi
- 1.功能 用全选主元高斯消去法计算矩阵A的秩(C语言) 2.函数参数说明 double a[m][n] : 存放mxn阶矩阵A的元素,返回时将被破坏 int m : 矩阵A的行数 int n : 矩阵A的列数 int rank() : 函数返回A的秩 3.文件说明 rank.c为函数程序 rank0.c为主函数程序
qiuyibanhanglieshidezhi
- 1.功能 用全选主元高斯消去法计算n阶方阵A所对应的行列式的值(C语言) 2.参数说明 double a[n][n] : 存方阵A的元素,返回时被破坏 int n : 方阵A的阶数 double sdet() : 函数返回行列式的值 3.文件说明 sdet.c为函数程序 sdet0.c为主函数程序-1. Function with all the main election yuan Gaussian elimination method n matr
qiufeixianxingfangchengyigeshigendelianfenshifa.ra
- 1.功能 利用连分式法求非线性方程f(x)=0的一个实根(C语言) 2.参数说明 double *x : 指向迭代初值,返回时指向迭代终值 double eps : 控制精度要求 double (*f)() : 指向计算f(x)值的函数名(由用户自编) int pqrt() : 函数返回迭代次数 3.文件说明 pqrt.c为函数程序 pqrt0.c为主函数程序-1. Continued Fractions functional method usi
qiufeixianxingfangchengzuzuixiaoerchengjiedeguangy
- 1.功能 利用广义逆求解无约束条件下的优化问题(C语言) 2.参数说明 int m : 非线性方程组中方程个数 int n : 非线性方程组中未知数个数 double eps1 : 控制最小二乘解的精度要求 double eps2 : 用于奇异值分解中的控制精度要求 double x[n] : 存放非线性方程组解的初始近似值X(0),要求各分量不全为0 int ka : Ka=max{m,n}+1 void (*f)() : 指向计算非线性方程组中各方程
gaosifangfajisuanduochongjifen
- 1.功能 用高斯方法计算n重积分(C语言) 2.参数说明 int n : 积分重数 int js[n] : js[k]表示第k层积分区间所划分的子区间 void (*ss)() : 指向计算各层积分上、下限的函数名(用户自编) double (*f)() : 指向计算被积函数值的函数名(用户自编) double gaus() : 函数返回积分值 3.文件说明 gaus.c为函数程序 gaus0.c为主函数程序-1. Gaussian funct
FormulaProcessor_beta1_CSharp
- 功能说明: 次组件提供的功能有二: 1、解析出数学表达式中的参数 2、计算数学表达式 此组件不但可以解析和计算数学表达式,还提供了一系列的数学基本函数,可应用于表达式中一块处理。提供的数学基本函数有:将值舍入到最接近的整数 rount(x)、向下取整函数 int(x)、向上取整 ceiling(x)、求两个数中最大数的函数 max(a,b)、求两个数中最小数的函数 min(a,b)、幂函数 pow(x,n)、求平方根的函数 sqrt(x)。 下载地址:http
TriSpline
- 三次样条插值程序。编译运行本程序后,程序会弹出窗口及问句:“input the number of intervals:”,输入插值的次数即可,程序将得到的次数保存在变量int n中。如果输入的插值次数正确(n>=2),程序会显示下一语句:\"input the value of the variable:\",此时输入插值点即可,程序将得到的插值点保存在变量double v中。若插值点正确(v>=0&&v<=6),则程序将输出插值结果。-cubic spline interp
MAIN 3-DIMENSIONAL CFD-PROGRAM
- #//u(i,j) x方向的速度u;或者θ方向速度uθ #//u(i,j) y方向的速度v;或者径向速度ur'h\K #//pc(i,j) 压力修正 p'[OS #//p(i,j) 压力p-=5-+ #//p(i,j)
int
- 求解积分方程,(1)使用复化Simpson方法求积分(2)使用三次样条求积分值,并比较离散解与真解之间的误差,附件有详细说明-Solving integral equation (1) the use of complex methods for integration of Simpson (2) the use of cubic spline points for value, and compare the discrete solution and the error between t
a
- 编写具有如下函数原型的非递归两种函数f,负责判断数组a的前n个元素是否从大到小完全有序了,是则返回true,否则返回false。并编制主函数对它们进行调用,以验证其正确性。 bool f(int a[], int n) 提示: 非递归函数中只需逐对地判断各a[i]与a[i+1]是否都已从大到小有序排列(i = 0,1,…,n-2)。-Prepared with the following function prototype of two non-recursive fun
_sncndn@20and_Cardano@56
- 调用MATHLIB37.DLL中的函数_sncndn@20计算三个雅可比椭圆函数sn(e,x),cn(e,x),dn(e,x)在实数域上的值,作为参变量为e的一元实函,sn,cn,dn的周期分别为4K(e),4K(e),2K(e),其中uu=x为实数,emmc=1-e^2称为补模的平方,e=c/a=k称为模或椭圆的离心率。函数原型为void sncndn(float uu,float emmc,float *sn,float *cn,float *dn) 用MATHLIB37.DLL中的函
scientific_calculator
- 使用说明: 1、该计算器对表达式的要求比较严格 2、该计算器默认采用弧度制,计算角度时则要转换:sin(π/6)=0.5 3、括号必须要匹配 4、注意像And这样的运算,前后数值需要括号:(1011)And(1000) 其他说明: Backspace :删除当前输入的最后一位。 CE :清除当前显示的表达式。 C :清除当前的计算,开始新的计算。 MC :清除存储器中的数据。 MR:调用存储器中的数据。 Mod求模(即整数相除求余数)
f.c
- Obtaining a sum from a subsequence of digits Write a program that prompts the user for two numbers: an unsigned long , say digits, and an int, say sum, and outputs the number of ways of selecting digits from digits that sum up to sum. For instance,
Mixminion-0.0.5.2.tar
- You should not need to change anything beyond this point. * The first part of the file implements linear algebra in GF. * gf is the type used to store an element of the Galois Field. * Must contain at least GF_BITS bits. * * Note: unsi
KMEANS
- This directory contains code implementing the K-means algorithm. Source code may be found in KMEANS.CPP. Sample data isfound in KM2.DAT. The KMEANS program accepts input consisting of vectors and calculates the given number of cluster centers u
hamming-(1962)
- 计算hamming(1962)级数:sn=1/n(n+x).0.0-300.0 步长,精确度可调。-Produce a table of the values of the series (1) for the 3001 values of x, x = 0.0, 0.1, 0.2, …, 300.00. All entries of the table must have an absolute error less than 10
zz2
- (1)顺序存储结构的实现。 列如,已知: f(x)=8x^6+5x^5-10x^4+32x^2-x+10,g(x)=7x^5+10x^4-20x^3-10x^2+x, 求和结果:f(x)+g(x)=8x^6+12x^5-20x^3+22x^2+10。 顺序表数据类型定义如下: #define MAXLEN 100 typedef struct { int data[MAXLEN] int last }SeqList (2)链式存储结构
3-7
- 实现下面的数组元素交换位置函数:void swap(int a[], int m, int n) 该函数能够把数组a的前m个元素与后n个元素交换位置,即, 交换前:a1,a2,...,aM, aM+1,aM+2,...,aM+N 交换后:aM+1,aM+2,...,aM+N, a1,a2,...,aM (要求:除数组a外,不得引入其它数组。)- implement the following array element exchange position function:
