中科大C语言教案
#include <stdio.h>
培 育 英 才
钻 研 科 学 第九章
#include <math.h> 1e#define EPS 1e-7 void main(){ double double udf_sin(double x); double double a; scanf("%lf",&a); printf("%f %f\n",udf_sin(a), sin(a)); printf("%f %f\ } double udf_sin( double x ){ double sum, term, n=1; //用户自定义函数 //用户自定义函数
//用户自定义函数原型说明 //用户自定义函数原型说明
sum=term=x;
while( fabs(term) > EPS ){ n=n+1;
信息科学技术学院 C语言程序设计教学组 term=term*(-x*x)/((2*n-2)*(2*nterm=term*(-x*x)/((2*n-2)*(2*n-1));

中科大C语言教案 (3) 中科大C语言教案 (4) 中科大C语言教案 (5) 中科大C语言教案 (7) 中科大C语言教案 (8) 中科大C语言教案 (9)...
中科大C语言教案 (3) 中科大C语言教案 (4) 中科大C语言教案 (5) 中科大C语言教案 (6) 中科大C语言教案 (7) 中科大C语言教案 (9)...
中科大C语言教案中科大C语言教案隐藏>> 第五章 函数★ 内容提要:函数的定义形式 函数的参数传递 函数的返回值与类型 函数间的数据联系 函数的递归调用 变量的...
中科大C语言教案中科大C语言教案隐藏>> ? 语句分类表 ? 空语句与复合语句 ? 条件分支语句 ? 循环控制语句 ? 程序示例 ? 流程强制转移 第三章 语句与控制流...
中科大C语言教案 (2)_IT/计算机_专业资料。中科大C语言教案#include <stdio.h> 培育英才 钻研科学 第二章 #include <math.h> 1e#define EPS 1e-7 void ...
中科大C语言教案 (7)_IT/计算机_专业资料。中科大C语言教案#include <stdio.h> 培育英才 钻研科学 第七章 #include <math.h> 1e#define EPS 1e-7 void ...
中科大C语言教案 (3) 中科大C语言教案 (5) 中科大C语言教案 (6) 中科大C语言教案 (7) 中科大C语言教案 (8) 中科大C语言教案 (9)1/2 相关文档推荐...
C语言教案:第9章 文件 26页 免费 零基础学C语言教案-第9章 19页 1财富值 C语言教案第9章 暂无评价 30页 免费 中科大C语言教案 (9) 34页 2财富值 C...
C语言教案:第9章 文件 26页 免费 零基础学C语言教案-第9章 19页 1财富值 C语言教案第9章 暂无评价 30页 免费 中科大C语言教案 (9) 34页 2财富值 C...
中科大C语言教案中科大C语言教案隐藏>> 第一章 概述★ 内容提要: C语言概貌 程序设计思想和程序结构 程序设计方法与要点 算法描述应用 基本输入输出 程序方式 ?...
热门文档