| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Polynomial: Scale x...</title> |
| 3 | <style> |
| 4 | td { padding-left: 5pt; padding-right: 5pt; } |
| 5 | th { padding-left: 5pt; padding-right: 5pt; } |
| 6 | code { white-space: pre-wrap; } |
| 7 | dd { white-space: pre-wrap; } |
| 8 | </style> |
| 9 | </head><body bgcolor="#FFFFFF"> |
| 10 | |
| 11 | <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 | Polynomial: Scale x... |
| 13 | </b></font></table></table> |
| 14 | <p>A command to transform the selected <a href="Polynomial.html">Polynomial</a> object to a new domain.</p> |
| 15 | <dl> |
| 16 | <dt><b>Xmin</b> and <b>Xmax</b> |
| 17 | <dd>define the new domain.</dd> |
| 18 | </dl> |
| 19 | <h2>Behaviour</h2> |
| 20 | <p>The polynomial is transformed from domain [<i>x</i><sub>min</sub>, <i>x</i><sub>max</sub>] to domain [<i>Xmin</i>, <i>Xmax</i>] in such a way that its form stays the same. This is accomplished by first calculating:</p> |
| 21 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>f</i>(<i>x</i>′) = Σ<sub><i>k</i>=1..<i>numberOfCoefficients</i></sub> <i>c</i><sub><i>k</i></sub> <i>x</i>′<sup><i>k</i></sup>, where</table> |
| 22 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>x</i>′ = <i>a</i> <i>x</i> + <i>b</i>,</table> |
| 23 | <p>and then collecting terms of equal degree. The <i>a</i> and <i>b</i> are defined as</p> |
| 24 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>a</i> = (<i>x</i><sub>min</sub> – <i>x</i><sub>max</sub>) / (<i>Xmin</i> – <i>Xmax</i>)</table> |
| 25 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>b</i> = <i>x</i><sub>min</sub> – <i>a</i> <i>Xmin</i></table> |
| 26 | <hr> |
| 27 | <address> |
| 28 | <p>© djmw 19990610</p> |
| 29 | </address> |
| 30 | </body> |
| 31 | </html> |