代码搜索:精度
找到约 2,443 项符合「精度」的源代码
代码结果 2,443
www.eeworm.com/read/373201/9469575
c main.c
/*Main.c*/
/*AD采样基本程序,并带有排队滤波函数
采样结果的精度与稳定性与基准源和信号源有关
请在项目开发的时候选择稳定的电压基准源*/
#include "global.c"
void SystemInit();
void Timer1Init();
void KickDog();
void SPI_Init();
void DA_OUT(un
www.eeworm.com/read/176032/9521463
m poly1.m
function c=poly1(A)
%POLY1 函数用 Fadeev-Faddeva 算法来取矩阵的特征多项式系数。
% 它完全可以取代 MATLAB 本身提供的 POLY 函数,且运算精度更高。
%Designed by Prof D Xue (c) 2000
[nr,nc]=size(A);
if nc==nr
R0=eye(nc); R=R0; c=[1 z
www.eeworm.com/read/365868/9842376
m example6_1.m
I = imread('cameraman.tif');%读入图像
I = double(I)/255;
T = dctmtx(8);%计算离散变换矩阵,返回结果为双精度型
B = blkproc(I,[8 8],'P1*x*P2',T,T');%实现图像的显示块操作
mask =[1 1 1 1 0 0 0 0
1 1 1 0 0 0 0 0
www.eeworm.com/read/365698/9850869
m muldnewton.m
function [r,m]=mulDNewton(F,x0,eps)
%非线性方程组:F
%初始解:x0
%解的精度:eps
%求得的一组解:r
%迭代步数:n
if nargin==2
eps=1.0e-4;
end
x0 = transpose(x0);
dF = Jacobian(F);
m=1;
tol=1;
while tol>eps
www.eeworm.com/read/365698/9850887
m mulstablepoint.m
function [r,n]=mulStablePoint(F,x0,eps)
%非线性方程组:f
%初始解:a
%解的精度:eps
%求得的一组解:r
%迭代步数:n
if nargin==2
eps=1.0e-6;
end
x0 = transpose(x0);
n=1;
tol=1;
while tol>eps
r= subs(F,finds
www.eeworm.com/read/364985/9884773
m exm0531_3.m
%exm0531_3.m
%指令eig与eigs的比较。
rand('state',1),A=rand(100,100)-0.5;
t0=clock;[V,D]=eig(A);T_full=etime(clock,t0) %指令eig的运作时间。
options.tol=1e-8; %为eigs设定计算精度。
options.disp=0; %使中间迭
www.eeworm.com/read/166632/10010585
m naromberg.m
function t=naromberg(fname,a,b,e)
%用途:Romberg法求函数的积分
%格式:t=naromberg(fname,a,b,e) fname是被积函数,a,b分别为下上限
% e为精度(默认1e-4)
if nargin
www.eeworm.com/read/166306/10024679
m quad8.m
function [Q,cnt] = quad8(funfcn,a,b,tol,trace,varargin)
%数值积分
%z=quad8('Fun',A,B,Tol,trace,p1,p2,L)
% 其中:"Fun"-表示被积函数的M函数名.
% A,B-上﹑下限.
% Tol-精度,缺省值为1e-3.
% trace-非零时显示计算过
www.eeworm.com/read/165501/10059277
c binsearchroot.c
#include "math.h"
#include "stdio.h"
int BinSearchRoot(a,b,h,eps,x,m) /*用二法计算非线性方程的实根*/
int m;
/*参数意义:
a 要求的根的下界
b 要求的根的上界,即:所求的根落在区间 [a,b]之内
h 递进的步长
eps 精度
x 根的值
m 预计的根的
www.eeworm.com/read/360661/10082574
m exmpl_1.m
%例一 正弦信号
%本程序中时间单位是毫妙
%频率单位为KHz
%本例说明取样点数与仿真精度的关系
global dt df t f N%global dt df t f N
close all%close all
figure(1)
set(1,'Position',[10,50,500,200])
%设定图1的窗口位置及大小
f