Denna sida fungerar bättre med Javascript igång.
Startsida
Hjälp
Logga in
lolengine
/
lol
spegling av
https://github.com/lolengine/lol
Bevaka
1
Stjärnmärk
0
Förgrening
0
Kod
Ärenden
0
Släpp
0
Wiki
Aktiviteter
Bläddra i källkod
test: make namespace usage less intrusive in math examples.
legacy
Sam Hocevar
sam
14 år sedan
förälder
6640cacd29
incheckning
5adaccac91
4 ändrade filer
med
9 tillägg
och
4 borttagningar
Delad Vy
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
Visa fil
@@ -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
Visa fil
@@ -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
Visa fil
@@ -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
Visa fil
@@ -21,8 +21,7 @@
#include "core.h"
using namespace lol;
using namespace std;
using lol::real;
#include "remez-matrix.h"
#include "remez-solver.h"
Skriv
Förhandsgranska
Laddar…
Avbryt
Spara