代码搜索:精度
找到约 2,443 项符合「精度」的源代码
代码结果 2,443
www.eeworm.com/read/424004/10508614
cpp ex9_2_1.cpp
//【例9.2_1】采用流操作子的浮点数输出。
#include
#include
using namespace std;
int main(){
double fnum=31.415926535;
cout
www.eeworm.com/read/275376/10821514
cpp 10_2.cpp
//10_2.cpp
#include
#include //包含双端队列容器头文件
#include //包含算法头文件
using namespace std;
int main()
{
deque< double > values; //声明一个双精度型deque序列容器
ostream_iter
www.eeworm.com/read/396256/6971645
m intsimpson.m
function [I,step] = IntSimpson(f,a,b,type,eps)
%type = 1 辛普森公式
%type = 2 辛普森3/8公式
%type = 3 复合辛普森公式
if(type==3 && nargin==4)
eps=1.0e-4; %缺省精度为0.0001
end
I=0;
switch
www.eeworm.com/read/445076/7109307
m intsimpson.m
function [I,step] = IntSimpson(f,a,b,type,eps)
%type = 1 辛普森公式
%type = 2 辛普森3/8公式
%type = 3 复合辛普森公式
if(type==3 && nargin==4)
eps=1.0e-4; %缺省精度为0.0001
end
I=0;
switch
www.eeworm.com/read/443342/7634266
m intsimpson.m
function [I,step] = IntSimpson(f,a,b,type,eps)
%type = 1 辛普森公式
%type = 2 辛普森3/8公式
%type = 3 复合辛普森公式
if(type==3 && nargin==4)
eps=1.0e-4; %缺省精度为0.0001
end
I=0;
switch
www.eeworm.com/read/439700/7702835
m intsimpson.m
function [I,step] = IntSimpson(f,a,b,type,eps)
%type = 1 辛普森公式
%type = 2 辛普森3/8公式
%type = 3 复合辛普森公式
if(type==3 && nargin==4)
eps=1.0e-4; %缺省精度为0.0001
end
I=0;
switch
www.eeworm.com/read/439439/7708876
cpp 二分法.cpp
#include
#include
#include
#define f(x) (x*x*x-x-1)
using namespace std;
int main()
{
int exact;
cout
www.eeworm.com/read/246680/12712828
m intsimpson.m
function [I,step] = IntSimpson(f,a,b,type,eps)
%type = 1 辛普森公式
%type = 2 辛普森3/8公式
%type = 3 复合辛普森公式
if(type==3 && nargin==4)
eps=1.0e-4; %缺省精度为0.0001
end
I=0;
switch
www.eeworm.com/read/328428/13027245
cpp romberg.cpp
#include
#include
#define f(x) (1/x) //举例函数
#define epsilon 0.000001 //精度
double Romberg(double aa, double bb,int MAXREPT)
{ //aa,bb 积分上下限
int m, n;//m控制迭代次数, 而n控
www.eeworm.com/read/491321/6438549
c 牛顿法程序.c
//////////////////////////////////////////////////////////////////////
// 牛顿极坐标法潮流 //
//文件输入格式:节点总数n(包括联络节点),支路数zls //
//节点数(发电机和负荷)nb,接地电抗数mdk,迭代精度eps //
//考虑负荷静特性标志kk2(0