The Wayback Machine - https://web.archive.org/web/20150413003953/http://zh.cppreference.com/mwiki/index.php?title=cpp/numeric&variant=zh-mo

Numerics library

從 cppreference.com
< cpp

 
 
Numerics的圖書館
常見的數學函數
浮點環境
複數
數字陣列
偽隨機數生成
編譯時合理的算法 (C++11)
通用的數值運算
原文:
Generic numeric operations
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
iota(C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
C + +數值解庫,包括常用數學函數和類型,以及優化的數字陣列,並支持隨機數生成.
原文:
The C++ numerics library includes common mathematical functions and types, as well as optimized numeric arrays and support for random number generation.
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡

目錄

[編輯] 常見的數學函數

cmath提供標準C庫數學函數std::fabsstd::sqrtstd::sin.
原文:
The header cmath provides 標準C庫數學函數 such as std::fabs, std::sqrt, and std::sin.
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡

[編輯] 複數

在頭文件 <complex> 中定義
複數類型
原文:
a complex number type
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡

(類模板)

[編輯] 數字陣列

在頭文件 <valarray> 中定義
數字陣列和陣列切片
原文:
numeric arrays and array slices
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡

(類模板)

[編輯] 通用的數值運算

在頭文件 <numeric> 中定義
(C++11)
用從起始值開始連續遞增的值填充區間
(函數模板) [edit]
計算區間內元素的和
(函數模板) [edit]
計算兩個區間元素的內積
(函數模板) [edit]
計算區間內相鄰元素之間的差
(函數模板) [edit]
計算區間內元素的部分和
(函數模板) [edit]

[編輯] 偽隨機數生成

random定義偽隨機數生成器和數值分佈。頭cstdlib還包括通過C-風格的隨機數生成std::srandstd::rand.
原文:
The header random defines 偽隨機數生成器和數值分佈. The header cstdlib also includes C-style random number generation via std::srand and std::rand.
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡

[編輯] 編譯時間合理的算法 (C++11 起)

ratio提供類型和用於操縱和存儲編譯時間比率的函數.
原文:
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡

[編輯] 浮點環境

fenv定義了標誌和相關的特殊浮點狀態的功能,如溢出和被零除.
原文:
The header fenv defines 標誌和相關的特殊浮點狀態的功能, such as overflow and division by zero.
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡