Debian Codegraph @

help/de/html/ch09.html

raw symbols SCIP
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Chapter 9. Polynome in GEL</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="Genius-Handbuch"><link rel="up" href="index.html" title="Genius-Handbuch"><link rel="prev" href="ch08s03.html" title="Lineare Algebra"><link rel="next" href="ch10.html" title="Chapter 10. Mengenlehre in GEL"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 9. Polynome in GEL</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch08s03.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch10.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="genius-gel-polynomials"></a>Chapter 9. Polynome in GEL</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="sect1"><a href="ch09.html#genius-gel-polynomials-using">Verwendung von Polynomen</a></span></dt></dl></div><p lang="en">
2 Currently Genius can handle polynomials of one variable written out
3 as vectors, and do some basic operations with these. It is planned to
4 expand this support further.
5 </p><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="genius-gel-polynomials-using"></a>Verwendung von Polynomen</h2></div></div></div><p lang="en">
6 Currently
7 polynomials in one variable are just horizontal vectors with value only nodes.
8 The power of the term is the position in the vector, with the first position
9 being 0. So,
10 </p><pre lang="en" class="programlisting">[1,2,3]
11 </pre><p lang="en">
12 translates to a polynomial of
13 </p><pre lang="en" class="programlisting">1 + 2*x + 3*x^2
14 </pre><p lang="en">
15 </p><p lang="en">
16 You can add, subtract and multiply polynomials using the
17 <a class="link" href="ch11s15.html#gel-function-AddPoly"><code class="function">AddPoly</code></a>,
18 <a class="link" href="ch11s15.html#gel-function-SubtractPoly"><code class="function">SubtractPoly</code></a>, and
19 <a class="link" href="ch11s15.html#gel-function-MultiplyPoly"><code class="function">MultiplyPoly</code></a> functions respectively.
20 You can print a polynomial using the
21 <a class="link" href="ch11s15.html#gel-function-PolyToString"><code class="function">PolyToString</code></a>
22 function.
23 For example,
24 </p><pre lang="en" class="programlisting">PolyToString([1,2,3],"y")
25 </pre><p lang="en">
26 gives
27 </p><pre lang="en" class="programlisting">3*y^2 + 2*y + 1
28 </pre><p lang="en">
29 You can also get a function representation of the polynomial so that you can
30 evaluate it. This is done by using
31 <a class="link" href="ch11s15.html#gel-function-PolyToFunction"><code class="function">PolyToFunction</code></a>,
32 which
33 returns an anonymous function.
34 </p><pre lang="en" class="programlisting">f = PolyToFunction([0,1,1])
35 f(2)
36 </pre><p lang="en">
37 </p><p lang="en">
38 It is also possible to find roots of polynomials of degrees 1 through 4 by using the
39 function
40 <a class="link" href="ch11s13.html#gel-function-PolynomialRoots"><code class="function">PolynomialRoots</code></a>,
41 which calls the appropriate formula function. Higher degree polynomials must be converted to
42 functions and solved
43 numerically using a function such as
44 <a class="link" href="ch11s13.html#gel-function-FindRootBisection"><code class="function">FindRootBisection</code></a>,
45 <a class="link" href="ch11s13.html#gel-function-FindRootFalsePosition"><code class="function">FindRootFalsePosition</code></a>,
46 <a class="link" href="ch11s13.html#gel-function-FindRootMullersMethod"><code class="function">FindRootMullersMethod</code></a>, or
47 <a class="link" href="ch11s13.html#gel-function-FindRootSecant"><code class="function">FindRootSecant</code></a>.
48 </p><p lang="en">
49 See <a class="xref" href="ch11s15.html" title="Polynomials">the section called “Polynomials”</a> in the function list
50 for the rest of functions acting on polynomials.
51 </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch08s03.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch10.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Lineare Algebra </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 10. Mengenlehre in GEL</td></tr></table></div></body></html>