浮點(diǎn)數(shù)基本運(yùn)算 浮點(diǎn)數(shù)的基本運(yùn)算主要有四則運(yùn)算、符號處理、大小比較,以及浮點(diǎn)數(shù)分柝等。 包含頭文件 "fn.hpp" #include "fn.hpp" 浮點(diǎn)數(shù)基本運(yùn)算 浮點(diǎn)數(shù)的基本運(yùn)算中有加、減、乘、除、取負(fù)、絕對值、相等比較等。 加減乘除 加、減、乘、除四個(gè)運(yùn)算極為相似,都是需要兩個(gè)參數(shù),結(jié)果當(dāng)然也是浮點(diǎn)數(shù)了。 例子: // 加 減 乘 除 btil::fn::plus<f1, f2>::value // f1+f2 的結(jié)果 btil::fn::minus<f1, f2>::value // f1-f2 的結(jié)果 btil::fn::multiplies<f1, f2>::value // f1*f2 的結(jié)果 btil::fn::divides<f1, f2>::value // f1/f2 的結(jié)果 plus<f1, f2>::value::f_val // f1+f2 的結(jié)果的值 struct one { static const double f_val = 1.0 } // 兩個(gè)浮點(diǎn)數(shù) struct two { static const double f_val = 2.0 } minus<two, plus<divides<one, two>::value, one>::value >::value::f_val == 0.5 取負(fù) 取負(fù)運(yùn)算就是取一個(gè)浮點(diǎn)數(shù)的負(fù)數(shù)。
標(biāo)簽: 浮點(diǎn)數(shù) 運(yùn)算 四則運(yùn)算 比較
上傳時(shí)間: 2014-12-06
上傳用戶:exxxds
自己用C編寫的小游戲,DOS界面哦,可以運(yùn)行。 浮點(diǎn)數(shù)基本運(yùn)算 浮點(diǎn)數(shù)的基本運(yùn)算主要有四則運(yùn)算、符號處理、大小比較,以及浮點(diǎn)數(shù)分柝等。 包含頭文件 "fn.hpp" #include "fn.hpp" 浮點(diǎn)數(shù)基本運(yùn)算 浮點(diǎn)數(shù)的基本運(yùn)算中有加、減、乘、除、取負(fù)、絕對值、相等比較等。 加減乘除 加、減、乘、除四個(gè)運(yùn)算極為相似,都是需要兩個(gè)參數(shù),結(jié)果當(dāng)然也是浮點(diǎn)數(shù)了。 例子: // 加 減 乘 除 btil::fn::plus<f1, f2>::value // f1+f2 的結(jié)果 btil::fn::minus<f1, f2>::value // f1-f2 的結(jié)果 btil::fn::multiplies<f1, f2>::value // f1*f2 的結(jié)果 btil::fn::divides<f1, f2>::value // f1/f2 的結(jié)果 plus<f1, f2>::value::f_val // f1+f2 的結(jié)果的值 struct one { static const double f_val = 1.0 } // 兩個(gè)浮點(diǎn)數(shù) struct two { static const double f_val = 2.0 } minus<two, plus<divides<one, two>::value, one>::value >::value::f_val == 0.5 取負(fù) 取負(fù)運(yùn)算就是取一個(gè)浮點(diǎn)數(shù)的負(fù)數(shù)。
上傳時(shí)間: 2014-12-06
上傳用戶:jichenxi0730
This directory contains utility for implementing generic Reqursive Least Squares (RLS) algorithm. The example shows how one can use the utility to estamate the parameters of a simple linear discrete time system.
標(biāo)簽: implementing Reqursive directory algorithm
上傳時(shí)間: 2014-01-06
上傳用戶:gtf1207
ATmega8 taillight circuitAn assembly language program that generates 5 different static patterns with switching from pattern-to-pattern controlled by the depression of one push-button switch (S2).
標(biāo)簽: taillight circuitAn generates different
上傳時(shí)間: 2014-01-12
上傳用戶:wanghui2438
In each step the LZSS algorithm sends either a character or a <position, length> pair. Among these, perhaps character "e" appears more frequently than "x", and a <position, length> pair of length 3 might be commoner than one of length 18, say. Thus, if we encode the more frequent in fewer bits and the less frequent in more bits, the total length of the encoded text will be diminished. This consideration suggests that we use Huffman or arithmetic coding, preferably of adaptive kind, along with LZSS.
標(biāo)簽: algorithm character position either
上傳時(shí)間: 2014-01-27
上傳用戶:wang0123456789
Altera recommends the following system configuration: * Pentium II 400 with 512-MB system memory (faster systems give better software performance) * SVGA monitor * CD-ROM drive * One or more of the following I/O ports: - USB port (if using Windows XP or Windows 2000) for USB-Blaster(TM) or MasterBlaster(TM) communications cables, or APU programming unit - Parallel port for ByteBlasterMV(TM) or ByteBlaster(TM) II download cables - Serial port for MasterBlaster communications cable * TCP/IP networking protocol installed * Windows 2000, Windows NT 4.0 with Service Pack 3 or later, or Windows XP * Internet Explorer 5.0 or later Memory & Disk Space Requirements USB開發(fā)
標(biāo)簽: system configuration recommends following
上傳時(shí)間: 2015-03-27
上傳用戶:13188549192
DBSCAN Designed by Dr. Michal aszykowski Department of Chemometrics Institute of Chemistry, The University of Silesia. It s the basic one.
標(biāo)簽: Chemometrics Department aszykowski Chemistry
上傳時(shí)間: 2015-03-29
上傳用戶:klin3139
手機(jī)文件瀏覽器 Here are the sources to SMan v1.2c 1.2 is a major jump from v1.1. You will see this from the way the code has been restructured into multiple files. It also supports flip closed. However, to my chagrin, I made the mistake of assuming there will only be one flip closed view. :( That s changed in v1.3 :) 1.3 supports multiple flip closed views that can be easily added into SMan.
標(biāo)簽: from 1.2 the sources
上傳時(shí)間: 2015-03-31
上傳用戶:彭玖華
REMOVE removes a TSR. It takes two command line arguments. The first is the name of TSR to be removed (or an * to remove the last one), and the second is a file name which MUST contain the interrupt vectors to be loaded when the TSR is removed.
標(biāo)簽: TSR arguments removes command
上傳時(shí)間: 2013-12-09
上傳用戶:wys0120
TOYFDTD1 is a stripped-down minimalist, 3D FDTD code demonstrating the basic tasks in implementing a simple 3D FDTD simulation. An idealized rectangular waveguide is modeled by treating the interior of the mesh as free space and enforcing PEC conditions on the faces of the mesh. A simplified plane wave source is inserted at one end. First released 12 April 1999. Version 1.03 released 2 December 1999.
標(biāo)簽: demonstrating stripped-down implementing minimalist
上傳時(shí)間: 2013-12-21
上傳用戶:無聊來刷下
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1