文件名称:ctml
介绍说明--下载内容均来自于网络,请自行研究使用
浮点数基本运算 浮点数的基本运算主要有四则运算、符号处理、大小比较,以及浮点数分柝等。 包含头文件 "fn.hpp" #include "fn.hpp" 浮点数基本运算 浮点数的基本运算中有加、减、乘、除、取负、绝对值、相等比较等。 加减乘除 加、减、乘、除四个运算极为相似,都是需要两个参数,结果当然也是浮点数了。 例子: // 加 减 乘 除 btil::fn::plus<f1, f2>::value // f1+f2 的结果 btil::fn::minus<f1, f2>::value // f1-f2 的结果 btil::fn::multiplies<f1, f2>::value // f1*f2 的结果 btil::fn::divides<f1, f2>::value // f1/f2 的结果 plus<f1, f2>::value::f_val // f1+f2 的结果的值 struct one { static const double f_val = 1.0 } // 两个浮点数 struct two { static const double f_val = 2.0 } minus<two, plus<divides<one, two>::value, one>::value >::value::f_val == 0.5 取负 取负运算就是取一个浮点数的负数。-float basic operations of the basic operations are four major operations, symbols, sizes, and float-watchman's rattle so. The first document contains "fn.hpp"# include "fn.hpp" float float basic operations of the basic operations are, plus or minus, riding, except from negative, in absolute terms, a comparison of the same. The arithmetic, plus or minus, multiplication and four Operational very similar, two parameters are needed, of course, is the result of the float. Example :// arithmetic btil : : fn : : pluslt; F1, f2gt; : : Value// f1 f2 results btil : : fn : : minuslt; F1, f2gt; : : Value// f1- f2 btil the results : : fn : : multiplieslt; f1, f2gt; : : value// f1- f2 results btil : : fn : : divideslt; f1, f2gt; : : value// f1/f2 pluslt results
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ctml
....\arcsin.hpp
....\arcsin.hpp~
....\copy.hpp
....\copy.hpp~
....\cos.hpp
....\docs
....\....\bt2il.css
....\....\fn.html
....\....\fn.html~
....\....\fnbase.html
....\....\fnbase.html~
....\....\fnconst.html
....\....\fnconst.html~
....\....\fnexp.html
....\....\fnexp.html~
....\....\fnother.html
....\....\fnother.html~
....\....\fntrigo.html
....\....\fntrigo.html~
....\....\index.html
....\....\index.html~
....\factorial.hpp
....\factorial.hpp~
....\fibonacci.hpp
....\fn.hpp
....\fn.hpp~
....\fnconst.hpp
....\fnconst.hpp~
....\fnem.hpp
....\fnem.hpp~
....\fnexp.hpp
....\fnexp.hpp~
....\fnmath.hpp
....\fnmath.hpp~
....\fntrigo.hpp
....\fntrigo.hpp~
....\gcd.hpp
....\ln.hpp
....\ln.hpp~
....\pi.hpp~
....\place.hpp
....\prime.hpp
....\sin.hpp
....\sqrt.hpp
....\tan.hpp
....\test
....\....\arcsin
....\....\arcsin.cpp
....\....\arcsin.cpp~
....\....\arcsin.hpp~
....\....\cos.cpp
....\....\cos.cpp~
....\....\cos.exe
....\....\epsilon
....\....\epsilon.cpp
....\....\epsilon.cpp~
....\....\fac
....\....\fac.cpp
....\....\fac.cpp~
....\....\fibo_test.cpp
....\....\fibo_test.exe
....\....\fnem
....\....\fnexp
....\....\fnexp.cpp
....\....\fnexp.cpp~
....\....\fn_sqrt.cpp
....\....\fn_sqrt.cpp~
....\....\fn_sqrt.exe
....\....\gcd.cpp
....\....\gcd.cpp~
....\....\gcd.exe
....\....\ln
....\....\ln.cpp
....\....\ln.cpp~
....\....\math
....\....\math.cpp
....\....\math.cpp~
....\....\pi
....\....\pi.cpp
....\....\pi.cpp~
....\....\pi.exe
....\....\prime_test.cpp
....\....\prime_test.cpp~
....\....\prime_test.exe
....\....\sin
....\....\sin.cpp
....\....\sin.cpp~
....\....\sin.exe
....\....\sqrt
....\....\test_sqrt
....\....\test_sqrt_2.cpp
....\....\test_sqrt_2.cpp~
....\....\test_sqrt_2.exe
....\__head.hpp
....\__head.hpp~
....\arcsin.hpp
....\arcsin.hpp~
....\copy.hpp
....\copy.hpp~
....\cos.hpp
....\docs
....\....\bt2il.css
....\....\fn.html
....\....\fn.html~
....\....\fnbase.html
....\....\fnbase.html~
....\....\fnconst.html
....\....\fnconst.html~
....\....\fnexp.html
....\....\fnexp.html~
....\....\fnother.html
....\....\fnother.html~
....\....\fntrigo.html
....\....\fntrigo.html~
....\....\index.html
....\....\index.html~
....\factorial.hpp
....\factorial.hpp~
....\fibonacci.hpp
....\fn.hpp
....\fn.hpp~
....\fnconst.hpp
....\fnconst.hpp~
....\fnem.hpp
....\fnem.hpp~
....\fnexp.hpp
....\fnexp.hpp~
....\fnmath.hpp
....\fnmath.hpp~
....\fntrigo.hpp
....\fntrigo.hpp~
....\gcd.hpp
....\ln.hpp
....\ln.hpp~
....\pi.hpp~
....\place.hpp
....\prime.hpp
....\sin.hpp
....\sqrt.hpp
....\tan.hpp
....\test
....\....\arcsin
....\....\arcsin.cpp
....\....\arcsin.cpp~
....\....\arcsin.hpp~
....\....\cos.cpp
....\....\cos.cpp~
....\....\cos.exe
....\....\epsilon
....\....\epsilon.cpp
....\....\epsilon.cpp~
....\....\fac
....\....\fac.cpp
....\....\fac.cpp~
....\....\fibo_test.cpp
....\....\fibo_test.exe
....\....\fnem
....\....\fnexp
....\....\fnexp.cpp
....\....\fnexp.cpp~
....\....\fn_sqrt.cpp
....\....\fn_sqrt.cpp~
....\....\fn_sqrt.exe
....\....\gcd.cpp
....\....\gcd.cpp~
....\....\gcd.exe
....\....\ln
....\....\ln.cpp
....\....\ln.cpp~
....\....\math
....\....\math.cpp
....\....\math.cpp~
....\....\pi
....\....\pi.cpp
....\....\pi.cpp~
....\....\pi.exe
....\....\prime_test.cpp
....\....\prime_test.cpp~
....\....\prime_test.exe
....\....\sin
....\....\sin.cpp
....\....\sin.cpp~
....\....\sin.exe
....\....\sqrt
....\....\test_sqrt
....\....\test_sqrt_2.cpp
....\....\test_sqrt_2.cpp~
....\....\test_sqrt_2.exe
....\__head.hpp
....\__head.hpp~