File:  [CENS] / python / pyGiNaC / ginac_test / test_power_print.cpp
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Nov 26 22:37:44 2001 UTC (15 years, 11 months ago) by pearu
Branches: MAIN
CVS tags: HEAD
See NEWS.txt (impl. matrix)

#include <iostream>
#include <ginac/ginac.h>
using namespace std;
using namespace GiNaC;

int main()
{
  symbol a("a");
  ex e = power(numeric(-2),a);
  cout << "(-2)^a-3="<<e-numeric(3)<< endl;
  e.print(print_latex(cout));
  cout << endl;
  return 0;
}


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>