functionsecondOrderToString
Transform vector of coefficients of second order polynomials to a string representation
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,2] | c | fill(0.0, 0, 2) | [p,p^0] coefficients osecond order polynomials: polynom(p) = p^2 + c[:,1]*p + c[:,2] |
| Integer | significantDigits | 6 | Number of significant digits that are shown |
| String | name | "p" | Independent variable name used for printing |
| Boolean | normalized | false | = true, the polynomials in the string are represented as p^2/c[:,2] + c[:,1]/c[:,2]*p + 1, provided c[i,2]<>0 |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | s | "" | |
| Real | gain | 1.0 | If normalized=true, the product(c[i,2]) (for i, where c[i,2]<>0), otherwise gain=1.0 |