代码搜索:精度提升
找到约 3,114 项符合「精度提升」的源代码
代码结果 3,114
www.eeworm.com/read/421977/10671317
m examp3_51.m
x=0:.1:10;
y=0.12*exp(-0.213*x)+0.54*exp(-0.17*x).*sin(1.23*x);
[xx,res]=lsqcurvefit(@c3xlsq,[1,1,1,1,1],x,y)
f=optimset; f.TolFun=1e-10; % 修改精度限制
[xx,res]=lsqcurvefit(@c3xlsq,[1,1,1,1,1],x,y,
www.eeworm.com/read/273742/10902964
cpp 黄金分割法.cpp
#include
#include
double f(double x)
{
double y=2*x*x-1*x-1;
return y;
}
void main(void)
{
double a0,b0,data,a,b,x1,x2;
couta0>>b0>>data;
www.eeworm.com/read/468066/6998897
v div4limit.v
/*
* filename: div4limit.v
*
* version: 2007-04-21
*
* funciton: 将乘法器的输出做精度截取.当invert=1时,这里的截取已经包含了
* 除以4的运算,这样3次循环后,就相当于除以256.
*
*/
module div4limit
(
clk8x,
data_in,
da
www.eeworm.com/read/466623/7029844
m examp3_51.m
x=0:.1:10;
y=0.12*exp(-0.213*x)+0.54*exp(-0.17*x).*sin(1.23*x);
[xx,res]=lsqcurvefit(@c3xlsq,[1,1,1,1,1],x,y)
f=optimset; f.TolFun=1e-10; % 修改精度限制
[xx,res]=lsqcurvefit(@c3xlsq,[1,1,1,1,1],x,y,
www.eeworm.com/read/464349/7164872
m mulvnewton.m
function [r,m]=mulVNewton(F,x0,A,eps)
%方程组:F
%方程组的初始解:x0
% 初始A矩阵:A
%解的精度:eps
%求得的一组解:r
%迭代步数:m
if nargin==2
A=eye(length(x0)); %A取为单位阵
eps=1.0e-4;
else
if nargin==3
www.eeworm.com/read/460384/7252238
f90 e_322_05.f90
!正弦函数用泰勒级数展开:sinx=x-x^3/3!+x^5/5!-x^7/7!+...。计算有限精度范围内的值。
real , parameter:: pi=3.141592, err=1.e-6
integer, parameter:: max_terms=10
read *, x; x=x*pi/180
k=1; term=x; sin_=term
do while((
www.eeworm.com/read/457186/7333090
m ga.m
function []=main(N,pcro,pmut)
%遗传算法主函数
%用以实现求给定函数fun在给定区间[low,up]上的极大值
% pcro交叉概率,pmut变异概率,N为迭代次数
low=-5; %区间下限
up=5; %区间上限
prec=0.0001; %要求结果精度
n=100; %种群个数
length=ceil(log2((up
www.eeworm.com/read/456942/7336250
cpp main2-8.cpp
// main2-8.cpp 检验bo2-8.cpp的主程序
#include"c1.h"
typedef int ElemType; // 也可以定义ElemType为实型或双精度型
#include"c2-1.h"
#include"bo2-8.cpp"
void visit(ElemType &c) // ListTraverse()调用的函数(类型要一致)
{
www.eeworm.com/read/454932/7381560
cpp main2-8.cpp
// main2-8.cpp 检验bo2-8.cpp的主程序
#include"c1.h"
typedef int ElemType; // 也可以定义ElemType为实型或双精度型
#include"c2-1.h"
#include"bo2-8.cpp"
void visit(ElemType &c) // ListTraverse()调用的函数(类型要一致)
{
www.eeworm.com/read/445058/7599874
m mulvnewton.m
function [r,m]=mulVNewton(F,x0,A,eps)
%方程组:F
%方程组的初始解:x0
% 初始A矩阵:A
%解的精度:eps
%求得的一组解:r
%迭代步数:m
if nargin==2
A=eye(length(x0)); %A取为单位阵
eps=1.0e-4;
else
if nargin==3