ARTS
2.3.1285(git:92a29ea9-dirty)
Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
z
+
Functions
a
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
z
Variables
Typedefs
Enumerations
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
i
n
o
p
q
r
s
t
v
Enumerations
+
Enumerator
a
b
c
d
e
f
g
l
n
p
s
t
u
+
Related Functions
a
c
d
f
i
l
m
n
o
p
s
t
v
x
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
z
Enumerations
+
Enumerator
a
e
f
g
i
m
n
p
s
u
v
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
test_poly.cc
Go to the documentation of this file.
1
/* Copyright (C) 2002-2012 Oliver Lemke <olemke@core-dump.info>
2
3
This program is free software; you can redistribute it and/or
4
modify it under the terms of the GNU General Public License as
5
published by the Free Software Foundation; either version 2 of the
6
License, or (at your option) any later version.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program; if not, write to the Free Software
15
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16
USA. */
17
18
#include <iostream>
19
#include "
poly_roots.h
"
20
21
int
main
(
void
) {
22
Vector
v(9, 0);
23
Matrix
s(8, 2);
24
25
v[0] = 2;
26
v[4] = 1;
27
v[8] = 8;
28
29
int
status =
poly_root_solve
(s, v);
30
31
cout << status << endl;
32
cout << s << endl;
33
34
return
(0);
35
}
poly_roots.h
Contains the code to determine roots of polynomials.
Vector
The Vector class.
Definition:
matpackI.h:860
main
int main(void)
Definition:
test_poly.cc:21
Matrix
The Matrix class.
Definition:
matpackI.h:1193
poly_root_solve
int poly_root_solve(Matrix &roots, Vector &coeffs)
Definition:
poly_roots.cc:90
arts
src
test_poly.cc
Generated on Wed Oct 7 2020 09:58:24 for ARTS by
1.8.13