Bu web sitesi JavaScript ile daha iyi çalışır.
Ana Sayfa
Yardım
Giriş Yap
lolengine
/
lol
şunun yansıması
https://github.com/lolengine/lol
İzle
1
Yıldızla
0
Çatalla
0
Kod
Konular
0
Sürümler
0
Wiki
Aktivite
Kaynağa Gözat
test: make namespace usage less intrusive in math examples.
legacy
Sam Hocevar
sam
13 yıl önce
ebeveyn
6640cacd29
işleme
5adaccac91
4 değiştirilmiş dosya
ile
9 ekleme
ve
4 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+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
Dosyayı Görüntüle
@@ -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
Dosyayı Görüntüle
@@ -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
Dosyayı Görüntüle
@@ -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
Dosyayı Görüntüle
@@ -21,8 +21,7 @@
#include "core.h"
using namespace lol;
using namespace std;
using lol::real;
#include "remez-matrix.h"
#include "remez-solver.h"
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet