代码搜索:精度
找到约 2,443 项符合「精度」的源代码
代码结果 2,443
www.eeworm.com/read/202630/15377498
c integration_nr.c
/* $Id: integration_nr.c,v 1.2 2005/06/20 03:28:52 zlb Exp $ */
#include
#include
#include
#include "integration_nr.h"
#define MACHINE_PREC 1e-15 /* 机器精度 */
double
i
www.eeworm.com/read/200131/15440081
m itae.m
function ss=itae(aa)
%ITAE 计算ITAE积分性能值
global a ss
a=aa;
Tspan=evalin('base','Tspan'); %从主空间获得采样时间向量
opts=simset('RelTol',0.0001); %设定仿真时的相对精度
[tt,x,s]=sim('smodel',Tspan,opts); %对SIMUL
www.eeworm.com/read/108707/15579048
c 定时器.c
#include
#define miao 6000//时间精度调节
#define bojintime_l 4//报警声时间长短-低电平开始
#define bojintime_h 6//报警声时间长短-低电平结束
#define setdelet 50//设置状态退出时间
www.eeworm.com/read/286602/8757163
txt 例4.5.txt
例4.5 求3个数中最大的数(分别考虑整数、双精度数、长整数的情况)。
#include
using namespace std;
int main( )
{int max(int a,int b,int c); //函数声明
double max(double a,double b,double c); //函数声明
long
www.eeworm.com/read/184790/9075654
txt 例4.5.txt
例4.5 求3个数中最大的数(分别考虑整数、双精度数、长整数的情况)。
#include
using namespace std;
int main( )
{int max(int a,int b,int c); //函数声明
double max(double a,double b,double c); //函数声明
long
www.eeworm.com/read/379196/9204895
txt 例4.5.txt
例4.5 求3个数中最大的数(分别考虑整数、双精度数、长整数的情况)。
#include
using namespace std;
int main( )
{int max(int a,int b,int c); //函数声明
double max(double a,double b,double c); //函数声明
long
www.eeworm.com/read/358192/10194118
m steffensen.m
%------------init------------------
x0=input('近似值:');
delta1=input('精度要求:');
delta2=3*delta1;
%---------------begin-------------
i=1;
while abs(x0-f(x0))>delta1
printf('这是第%d个解\n',i)
y
www.eeworm.com/read/352537/10542396
m besselj_solve2.m
function besselj_solve2(a,b,t)
y=linspace(a,b,1000);
A=besselj(0,y);
B=besselj(1,y);
p=0;
solve_besselj=y.*A-0.73*B;
[i,j]=find(abs(solve_besselj)
www.eeworm.com/read/421635/10723179
cpp vc0402.cpp
// Example 4-2:求双精度类型量的绝对值
#include
double mydabs(double x)
{
return x>0?x:-x;
}
void main()
{
double f1 = -12.0, f2 = 234.0;
cout
www.eeworm.com/read/469371/6973931
cc 3287130_ac_16ms_568k.cc
#include
#include
struct T_large
{
short len;
short a[500];
} f[51], power, c0[51], c1[51], now, tmp;
void add(T_large &d, T_large &a, T_large &b) //高精度加法
{
int i;