Main Page   Compound List   File List   Compound Members   Examples  

productLog.cc

This is an example of how to use the Mathematica class

/*  mffm Mathematica C++ Wrapper
  Mathematica core library C++ wrapper

  Copyright (C) 2000, 2002 Matt R. Flax flatmax at ieee org
  
  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.
  
  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.
  
  You have received a copy of the GNU Lesser General Public License
  along with this library.
*/
#include <iostream>
using namespace std;

#include "mathematica.H"

int main(int argc, char* argv[]){
        if (argc<2){
          printf("Useage:\n\t%s number\n",argv[0]);
          exit(-1);
        }

        Mathematica mathematica;
        double res=mathematica.productLog(atoi(argv[1]));
        printf("%.15f\n",res);
        //cout<<"ProductLog["<<argv[1]<<"] = "<<res<<endl;

        return 0;
}

Generated on Mon Dec 16 16:43:59 2002 for MFFM Mathematica C++ wrapper by doxygen1.2.18