Polynomial: Scale x...

A command to transform the selected Polynomial object to a new domain.

Xmin and Xmax
  define the new domain.

## Behaviour

The polynomial is transformed from domain [xmin, xmax] to domain [Xmin, Xmax] in such a way that its form stays the same. This is accomplished by first calculating:

f(x′) = Σk=1..numberOfCoefficients ck x′k, where

x′ = a x + b,

and then collecting terms of equal degree. The a and b are defined as

a = (xmin – xmax) / (Xmin – Xmax)

b = xmin – a Xmin