Search code examples
c++visual-studio-2010installationsymbolic-mathsymbolic-computation

How do you install Symbolic C++ on Visual Studio 2010?


I have Symbolic C++ (the version that can integrate with V, there is no documentation on how to install it. I got it from this website and it has examples of how it work:

http://issc.uj.ac.za/symbolic/symbolic.html

Does anyone have any idea on how to install this to use with my projects in Visual Studio?


Solution

  • Maybe a late answer, but may still be useful for others.

    For *nix systems:

    There are two versions:

    [1] Tarball that do not need to be installed in your system:  
    

    http://issc.uj.ac.za/symbolic/sources/SymbolicC++3-3.35.tar.gz

    [2] Library, intended to be installed in your system: 
    

    http://issc.uj.ac.za/symbolic/sources/SymbolicC++3-3.35-ac.tar.gz

    Y opted for library. Now, extract the tarball and then, from the README file:

    This project attempts to extract the parts of SymbolicC++ that can
    be compiled as part of a library and so create the include / library
    infrastructure. The src and include directories are populated by
    scripts from the SymbolicC++ header files.
    
    == Installation to /usr/local ===============================================
    
    To install to /usr/local:
    
      ./configure
      make
      make install
    
    To compile a program using SymbolicC++ with GCC:
    
      g++ -o program program.cpp -lsymbolicc++
    
    To run the program:
    
      ./program
    
    A brief PDF document describing SymbolicC++ is provided (doc/introsymb.pdf)
    and is installed as /usr/local/share/doc/SymbolicC++.pdf.
    

    Here a simple example(from Wikipedia, do work!):

    #include <iostream>
    #include "symbolicc++.h"
    using namespace std;
    
    int main(void)
    {
      Symbolic x("x");
      cout << integrate(x+1, x) <<endl;       // => 1/2*x^(2)+x
      Symbolic y("y");
      cout << df(y, x) << endl;               // => 0
      cout << df(y[x], x) << endl;            // => df(y[x],x)
      cout << df(exp(cos(y[x])), x) << endl ; // => -sin(y[x])*df(y[x],x)*e^cos(y[x])
      return 0;
    }
    

    Visual studio

    There is a special version for VS:

    http://issc.uj.ac.za/symbolic/sources/SymbolicC++3-3.35-vc.zip

    I hope this helps!