00001 /* Copyright (C) 2002-2008 Oliver Lemke <olemke@core-dump.info> 00002 00003 This program is free software; you can redistribute it and/or 00004 modify it under the terms of the GNU General Public License as 00005 published by the Free Software Foundation; either version 2 of the 00006 License, or (at your option) any later version. 00007 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00016 USA. */ 00017 00018 #include <iostream> 00019 #include "poly_roots.h" 00020 00021 int 00022 main (void) 00023 { 00024 Vector v(9, 0); 00025 Matrix s(8, 2); 00026 00027 v[0] = 2; 00028 v[4] = 1; 00029 v[8] = 8; 00030 00031 int status = poly_root_solve (s, v); 00032 00033 cout << status << endl; 00034 cout << s << endl; 00035 00036 return (0); 00037 } 00038