CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - PI
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - PI - List
[
VC/MFC
]
C++完美演绎2
DL : 0
C++完美演绎 经典算法 如 /* 头文件:my_Include.h */ #include <stdio.h> /* 展开C语言的内建函数指令 */ #define PI 3.1415926 /* 宏常量,在稍后章节再详解 */ #define circle(radius) (PI*radius*radius) /* 宏函数,圆的面积 */ /* 将比较数值大小的函数写在自编include文件内 */ int show_big_or_small (int a,int b,int c) { int tmp if (a>b) { tmp = a a = b b = tmp } if (b>c) { tmp = b b = c c = tmp } if (a>b) { tmp = a a = b b = tmp } printf("由小至大排序之后的结果:%d %d %d\n", a, b, c) } 程序执行结果: 由小至大排序之后的结果:1 2 3 可将内建函数的include文件展开在自编的include文件中 圆圈的面积是=201.0619264-C perfect interpretation of classic algorithms/* header files : my_Include.h* /# include lt; Stdio.hgt;/* Start with the built-in C language function instructions* /# define PI 3.1415926/* Acer constants later, in another chapter Elaborates on* /# define circle (radius) (PI** radius radius)/* Macro function, a round of the area*//* to compare the numerical size of the write functions include writing paper*/int show_big_or_small (int a, b int, int c) (int tmp if (Agt; b) (tmp = a b a = b = tmp) if (BGT; c) (tmp = b b = c c = tmp) if (Agt; b) ( tmp = a b a = b = tmp) printf ( "ascending order by the following results :% d% d% d \ n", a, b, c)) procedures : in ascending order by the following results : 1 2 3 will the built-in functions include documents writte
Date
: 2026-01-01
Size
: 127kb
User
:
立功
[
VC/MFC
]
ONLINE
DL : 0
在线PING 在线PING 在线PING 在线PING-online PING PING Online Online PING PING online Online online PING PING PING Online Online Online PING PING PING online online PI NG
Date
: 2026-01-01
Size
: 266kb
User
:
tansoft
[
VC/MFC
]
classicsinC
DL : 0
C语言里面的经典算法,包括有老掉牙 河内塔 费式数列 巴斯卡三角形 三色棋 老鼠走迷官(一) 老鼠走迷官(二) 骑士走棋盘 八个皇后 八枚银币 生命游戏 字串核对 双色、三色河内塔 背包问题(Knapsack Problem) 数、运算 蒙地卡罗法求 PI Eratosthenes筛选求质数 超长整数运算(大数运算) 长 PI 最大公因数、最小公倍数、因式分解 完美数 阿姆斯壮数 最大访客数 中序式转后序式(前序式) 后序式的运算 关于赌博 洗扑克牌(乱数排列) Craps赌博游戏 约瑟夫问题(Josephus Problem) 集合问题 排列组合 格雷码(Gray Code) 产生可能的集合 m元素集合的n个元素子集 数字拆解 排序 得分排行 选择、插入、气泡排序 Shell 排序法 - 改良的插入排序 Shaker 排序法 - 改良的气泡排序 Heap 排序法 - 改良的选择排序 快速排序法(一) 快速排序法(二) 快速排序法(三) 合并排序法 基数排序法 搜寻 循序搜寻法(使用卫兵) 二分搜寻法(搜寻原则的代表) 插补搜寻法 费氏搜寻法 矩阵 稀疏矩阵 多维矩阵转一维矩阵 上三角、下三角、对称矩阵 奇数魔方阵 4N 魔方阵 2(2N+1) 魔方阵 -Obsolete Hanoi Tower Fei-style series Pascal triangle Three-color Chess Mouse walking fans Officer (1) Mouse walking fans Officer (2) Knight walking board 8 Queens 8 coins Game of Life String matching Two-color, three-color Hanoi Tower Knapsack problem (Knapsack Problem) The number of operations Monte Carlo method seeking PI Eratosthenes prime number screened seeking Long integer arithmetic (operations of large numbers) Long PI Greatest common factor, least common multiple, factorization Perfect Number 阿姆斯壮数 Maximum number of visitors Type in order to switch the order of type (pre-order type) Follow-style computing About Gambling Wash cards (random order) Craps Casino Games Joseph problems (Josephus Problem) Set problem Permutations Gray code (Gray Code) Generate the set of possible m elements of the collection a subset of n elements Digital dismantling Sort Score Ranking Selection, insertion, bubble sort Shell
Date
: 2026-01-01
Size
: 431kb
User
:
neoleo
[
VC/MFC
]
PI-LT104AD18900-V02R
DL : 0
TFT-LCD设计相关资料,是LED背光设计-TFT-LCD design-related information, is the LED backlight design
Date
: 2026-01-01
Size
: 131kb
User
:
chenxiao
[
VC/MFC
]
cow
DL : 0
中大sicily oj上hungry cow的ac源码,精度要求很高,pi的取值可以用acos(-1)来表示。-Large sicily oj the hungry cow the ac source, a high precision, pi' s value can be acos (-1) to represent.
Date
: 2026-01-01
Size
: 336kb
User
:
chenqiu
[
VC/MFC
]
Monte-Carlo
DL : 0
利用蒙特卡洛方法计算圆周率大小,内附所有文件及一份报告-Monte Carlo method using the size of pi, a report containing all the documents and
Date
: 2026-01-01
Size
: 383kb
User
:
ziya
[
VC/MFC
]
yuanzhoulv
DL : 0
计算圆周率的程序,可以学习到怎么用程序计算出圆周率。-Pi calculation program, you can learn how to use the program to calculate pi.
Date
: 2026-01-01
Size
: 1kb
User
:
marine
[
VC/MFC
]
c_pi
DL : 0
PI内部学习代码,C版本,适合初学者,分享学习-PI internal study code, C version, suitable for beginners, learning to share
Date
: 2026-01-01
Size
: 9kb
User
:
liuxueyan
[
VC/MFC
]
yuan-de-jiegouti
DL : 0
1)定义一个名为Circle的结构体(圆),其数据成员是圆的内接矩形的左上角和右下角两点的坐标。(2)编写计算圆的面积的函数,函数原型为 double carea(Circle C ) 其中的返回值为圆C的面积。圆周率PI取为3.14。 编写主函数,定义一个结构体类型的变量,输入圆的内接矩形的两个对角顶点坐标,调用carea()函数计算面积并打印。 程序运行结果如下: 输入: 0 0 4 4 输出: 25.12 程序运行结果如下: 输入(要计算完全数的起止位置): 2 10000 输出: 6 28 496 8128 -1) define a structure named Circle (circle), the data member is a circle within the rectangle to the upper left corner and lower right corner of two coordinates. (2) write a function of computing the area of a circle, the function prototype for double carea (Circle C) Which the return value is the area of the circle C. Pi PI was 3.14. Write the main function, to define a structure variable of type, enter the circle within the rectangle to 2 diagonal vertex coordinates, the call carea () function to calculate the area and print. The program runs the following results: Input: 0044 Output: 25.12 The program runs the following results: Input (to calculate the perfect number of the start and end position): 210 000 Output: 6284968128
Date
: 2026-01-01
Size
: 899kb
User
:
秦润
[
VC/MFC
]
Pi
DL : 0
这是一本关于使用批处理启动应用程序的文章。 使用批处理启动程序方便、快捷-This is a book about using batch start application article. Using batch start program, fast convenient
Date
: 2026-01-01
Size
: 1.11mb
User
:
张建国
[
VC/MFC
]
chuan-pi-pei
DL : 0
字符串的匹配问题,有bf算法,有bm算法,有kmp算法,有兴趣一起交流-String matching problem, bf algorithm, bm algorithm, kmp algorithm, interested with the exchange
Date
: 2026-01-01
Size
: 81kb
User
:
建委
[
VC/MFC
]
daima
DL : 0
ofdm spectrum plot clear all close all clc Num_Sc = 12 13 subcarriers Ts = 1 1s F_space = 1/Ts F = -F_space*Num_Sc/2-4:0.001:F_space*Num_Sc/2+4 F_spectrum = zeros(Num_Sc,length(F)) for i = -Num_Sc/2:1:Num_Sc/2 F_spectrum(i+Num_Sc/2+1,1:end) = sin(2*pi*(F-i*F_space).*Ts/2)./(2*pi*(F-i*F_space).*Ts/2) end plot(F,F_spectrum) grid on- Ofdm spectrum plot clear all close all clc Num_Sc = 12 13 subcarriers Ts = 1 1s F_space = 1/Ts F =-F_space* Num_Sc/2-4: 0.001: F_space* Num_Sc/2+4 F_spectrum = zeros (Num_Sc, length (F)) for i =-Num_Sc/2:1: Num_Sc/2 F_spectrum (i+Num_Sc/2+1, 1: end) = sin (2* pi* (Fi* F_space).* Ts/2)./(2* pi* (Fi* F_space).* Ts/2) end plot (F, F_spectrum) grid on
Date
: 2026-01-01
Size
: 1kb
User
:
代鸿霞
[
VC/MFC
]
PZT
DL : 0
使用C++程序对德国PI公司的的压电陶瓷PZT进行自行控制-Use C++ PI' s program in Germany PZT piezoelectric ceramics for self-control
Date
: 2026-01-01
Size
: 566kb
User
:
何张强
[
VC/MFC
]
pi
DL : 0
这资料详细介绍PI算法的C语言使用方法,非常通俗易懂-This data PI algorithm is introduced the use of C language, very easy to understand
Date
: 2026-01-01
Size
: 59kb
User
:
呜呜呜
[
VC/MFC
]
biancheng1
DL : 0
这个程序是用来圆周率pi的,它是求pi的方法之一-This procedure is used pi pi, which is one of the ways for pi
Date
: 2026-01-01
Size
: 3kb
User
:
新亚洲
[
VC/MFC
]
ff
DL : 0
0——1背包问题.求从n种物品中选取若干物品装载容量为m的背包的最佳方案(x1,x2……xn)。其中第i个物品的重量为wi,价值为pi(i=1……n)。在∑xiwi<=m的前提下,∑xipi最大。
Date
: 2026-01-01
Size
: 1kb
User
:
hr
[
VC/MFC
]
Pi-Invariant-Unscente
DL : 0
The necessary resort to multiple miniaturized low-cost and low-performance sensors integrated into mini-RPAS, which are obviously subjected to hard space requirements-Pi-Invariant Unscented Kalman Filter for Sensor Fusion
Date
: 2026-01-01
Size
: 654kb
User
:
贾云
[
VC/MFC
]
Thistributiatic
DL : 0
This paper presents the modeling and implementation of a three-phase DSTATCOM (Distribution Static Compensator) using STF (Self Tuning Filter) based IRPT (Instantaneous Reactive Power Theory) control algorithm for power quality improvement. It is used for harmonics elimination, load balancing and reactive power compensation at distorted PCC (Point of Common Coupling) voltages under nonlinear loads. An adaptive fuzzy logic controller is used to control the dc bus voltage of VSC (Voltage Source Converter) based DSTATCOM to improve the response and to reduce the overshoot and undershoot of traditional PI (Proportional-Integral) controller under unbalanced loading conditions and supply voltage fluctuations.
Date
: 2026-01-01
Size
: 14.54mb
User
:
yangs
[
VC/MFC
]
PID算法详解-hao
DL : 0
电力电子调试PI调试方法和PI详细算法分析(Power electronic debugging, PI debugging method and PI detailed algorithm analysis)
Date
: 2026-01-01
Size
: 1.33mb
User
:
小强小强
[
VC/MFC
]
0221
DL : 0
Complex of three-point Gauss-lengend the Formula pi, Space target recognition algorithm using PM, For feature reduction, feature fusion, correlation analysis.
Date
: 2026-01-01
Size
: 38kb
User
:
loupoufun
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.