本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
說明
登入
lolengine
/
lol
镜像来自
https://github.com/lolengine/lol
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
0
Wiki
活動
瀏覽代碼
test: make namespace usage less intrusive in math examples.
legacy
Sam Hocevar
sam
14 年之前
父節點
6640cacd29
當前提交
5adaccac91
共有
4 個檔案被更改
,包括
9 行新增
和
4 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-2
test/math/pi.cpp
+2
-0
test/math/remez-matrix.h
+2
-0
test/math/remez-solver.h
+1
-2
test/math/remez.cpp
+ 4
- 2
test/math/pi.cpp
查看文件
@@ -20,8 +20,10 @@
#include "core.h"
using namespace lol;
using namespace std;
using std::printf;
using std::sqrt;
using lol::real;
int main(int argc, char **argv)
{
+ 2
- 0
test/math/remez-matrix.h
查看文件
@@ -80,6 +80,8 @@ template<int N> struct Matrix
void print() const
{
using std::printf;
for (int j = 0; j < N; j++)
{
for (int i = 0; i < N; i++)
+ 2
- 0
test/math/remez-solver.h
查看文件
@@ -258,6 +258,8 @@ public:
void PrintPoly()
{
using std::printf;
/* Transform Chebyshev polynomial weights into powers of X^i
* in the [-1..1] range. */
real bn[ORDER + 1];
+ 1
- 2
test/math/remez.cpp
查看文件
@@ -21,8 +21,7 @@
#include "core.h"
using namespace lol;
using namespace std;
using lol::real;
#include "remez-matrix.h"
#include "remez-solver.h"
Write
Preview
Loading…
取消
儲存