代码搜索:精度
找到约 2,443 项符合「精度」的源代码
代码结果 2,443
www.eeworm.com/read/8792/154080
cpp dtmf.cpp
#include
#include
//
// DTMF 解码程序
// author: hendry
// date: 2008/11
//
//
// 注意:1) 采样率 4000 bps(采样率很低,降低对系统要求,解码准确度一点不含糊,(*^__^*) 嘻嘻……)
//
// 2) 采样精度 8
www.eeworm.com/read/359352/2978701
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/474484/6810377
c jacobi.c
//雅戈比方法:经过25次迭代,无法达到题目所规定的精度。
#include
#include
#define N 6
#define E 0.00001
print_column_N(double array[N][N])
{
int i,j;
for(i=0;i
www.eeworm.com/read/474486/6810385
c gauss-seidel.c
//高斯斯代尔:可以以更快的速度达到精度要求,经过16次迭代。
#include
#include
#define N 6
#define E 0.00001
print_column_N(double array[N][N])
{
int i,j;
for(i=0;i
www.eeworm.com/read/249069/12524682
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/147001/12594417
m gong_e1.m
function [ output_args ] = Gong_E1( input_args )
%GONG_E Summary of this function goes here
% Detailed explanation goes here
times=1;
circles=1;
x1=input('请输入初始点[x1,x2]=');
s=input('请输入精度s=');
www.eeworm.com/read/238066/13909541
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/284554/8919552
c prog26.c
/*
请编写一个函数fun,它的功能是:根据以下公式求л的值(要求满足精度0.0005,即某项小于0.0005时停止迭代):
л/2=1+1/3+(1x2)/(3x5)+(1x2x3)/(3x5x7)+(1x2x3x4)/(3x5x7x9)+…+(1x2x3x…xn)/[3x5x7x…x(2n+1)]
程序运行后,如果输入精度0.0005,则程序输出为3.14…。
注意:部分源程序
www.eeworm.com/read/174893/9570594
txt gettime.txt
利用C++ Builder进行精确计时
虽然Win95下可视化开发工具如VC、Delphi、C++ Builder等都有专用的定时器控件Timer,而且使用很方便,可以实现一定的定时功能,但最小计时<mark>精度</mark>仅为55ms,且定时器消息在多任务操作系统中的优先级很低,不能得到及时响应,往往不能满足实时控制环境下的应用。不过Microsoft公司在Win32 API函数库中已经为用户提供了一组用于高<mark>精度</mark>计 ...
www.eeworm.com/read/142983/12906673
txt analy-4.txt
分析与答案
分析:本题主要考查循环结构、简单迭代法求根的思想、迭代的程序设计等知识点。
迭代法求根的基本思想是将所求变量x用关于x的表达式表示出来,用给定的初值求新值,并比较此新值与上次结果,若达到规定<mark>精度</mark>则程序结束,否则以新值再次代入表达式循环,直到得到规定<mark>精度</mark>的解。迭代法对初值有较高的要求。
答案:
float countValue()
{
float x0, ...