Changeset 1091


Ignore:
Timestamp:
Nov 28, 2011, 2:58:51 AM (9 years ago)
Author:
sam
Message:

test: make namespace usage less intrusive in math examples.

Location:
trunk/test/math
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/math/pi.cpp

    r1050 r1091  
    2121#include "core.h"
    2222
    23 using namespace lol;
    24 using namespace std;
     23using std::printf;
     24using std::sqrt;
     25
     26using lol::real;
    2527
    2628int main(int argc, char **argv)
  • trunk/test/math/remez-matrix.h

    r1009 r1091  
    8181    void print() const
    8282    {
     83        using std::printf;
     84
    8385        for (int j = 0; j < N; j++)
    8486        {
  • trunk/test/math/remez-solver.h

    r1027 r1091  
    259259    void PrintPoly()
    260260    {
     261        using std::printf;
     262
    261263        /* Transform Chebyshev polynomial weights into powers of X^i
    262264         * in the [-1..1] range. */
  • trunk/test/math/remez.cpp

    r1070 r1091  
    2222#include "core.h"
    2323
    24 using namespace lol;
    25 using namespace std;
     24using lol::real;
    2625
    2726#include "remez-matrix.h"
Note: See TracChangeset for help on using the changeset viewer.