- DS1302时钟芯片C例程 <p>/*这个程序
- ueditor1.1.7.3 这是一个功能大的在线编辑器具有word直接粘贴功能
- shuzipinlvji 本数字频率计将采用定时
- Based-on--ESPRIT- 摘 要:基于子空间分解的ESPRIT算法常用在阵列处理中对目标进行DOA估计.如果将空间的位移变成时间的 延迟
- sqlserver2005 java程序中与连接获取到sql的connection 并带有sql的jar包
- haraksingh The Diffie Hellman Key Exchange Protocol and its relationship to the Elliptic Curve Discrete Logarithm Problem
文件名称:huangjin
介绍说明--下载内容来自于网络,使用问题请自行百度
#include<stdio.h>
#include<math.h>
float Function(float x)
void main()
{
float a,b,e
float x0,x1,x2,F0,F1,F2
printf("input a ,b ,e \n")
scanf(" f f f",&a,&b,&e)
x1=b-0.618*(b-a)
x2=a+0.618*(b-a)
F1=Function(x1)
F2=Function(x2)
do
{
if(F1>F2)
{
a=x1
x1=x2
x2=a+0.618*(b-a)
F2=Function(x2)
}
else
{
b=x2
x2=x1
F2=F1
x1=b-0.618*(b-a)
F1=Function(x1)
}
}
while((b-a)>e)
x0=(a+b)/2
F0=Function(x0)
printf("x0= f,F0= f\n",x0,F0)
}
float Function(float x)
{
float f
f=x*x-7*x+10
return f
}-# Include <stdio.h># Include <math.h> float Function (float x) void main () {float a, b, e float x0, x1, x2, F0, F1, F2 printf (" input a, b, e \ n" ) scanf (" f f f " , & a, & b, & e) x1 = b-0.618* (ba) x2 = a+0.618* (ba) F1 = Function (x1) F2 = Function (x2) do { if (F1> F2) {a = x1 x1 = x2 x2 = a+0.618* (ba) F2 = Function (x2) } else {b = x2 x2 = x1 F2 = F1 x1 = b-0.618* (ba) F1 = Function (x1) }} while ((ba)> e) x0 = (a+ b)/2 F0 = Function (x0) printf (" x0 = f, F0 = f \ n " , x0, F0) } float Function (float x) {float f f = x* x-7* x+10 return f }
#include<math.h>
float Function(float x)
void main()
{
float a,b,e
float x0,x1,x2,F0,F1,F2
printf("input a ,b ,e \n")
scanf(" f f f",&a,&b,&e)
x1=b-0.618*(b-a)
x2=a+0.618*(b-a)
F1=Function(x1)
F2=Function(x2)
do
{
if(F1>F2)
{
a=x1
x1=x2
x2=a+0.618*(b-a)
F2=Function(x2)
}
else
{
b=x2
x2=x1
F2=F1
x1=b-0.618*(b-a)
F1=Function(x1)
}
}
while((b-a)>e)
x0=(a+b)/2
F0=Function(x0)
printf("x0= f,F0= f\n",x0,F0)
}
float Function(float x)
{
float f
f=x*x-7*x+10
return f
}-# Include <stdio.h># Include <math.h> float Function (float x) void main () {float a, b, e float x0, x1, x2, F0, F1, F2 printf (" input a, b, e \ n" ) scanf (" f f f " , & a, & b, & e) x1 = b-0.618* (ba) x2 = a+0.618* (ba) F1 = Function (x1) F2 = Function (x2) do { if (F1> F2) {a = x1 x1 = x2 x2 = a+0.618* (ba) F2 = Function (x2) } else {b = x2 x2 = x1 F2 = F1 x1 = b-0.618* (ba) F1 = Function (x1) }} while ((ba)> e) x0 = (a+ b)/2 F0 = Function (x0) printf (" x0 = f, F0 = f \ n " , x0, F0) } float Function (float x) {float f f = x* x-7* x+10 return f }
(系统自动生成,下载前可以参看下载内容)
下载文件列表
huangjin.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
