commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-683) Create a method shift in the PolynomialFunction class
Date Mon, 03 Oct 2011 14:34:33 GMT

    [ https://issues.apache.org/jira/browse/MATH-683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119334#comment-13119334
] 

Gilles commented on MATH-683:
-----------------------------

Yes, please attach everything that could be useful to figure out what is the required functionality.
So, if I understand correctly, what you really request is the function that would compute
the new  coefficients ("bi"):
{noformat}
Ps(k) = Sum bi * k^i
      = Sum ai * (k + a)^i
      = P(k + a)
{noformat}

This functionality should probably go in the "PolynomialsUtils" class:
{code}
public static double[] shiftedPolynomialCoefficients(double[] c, double shift) {
    // ...
}
{code}

                
> Create a method shift in the PolynomialFunction class
> -----------------------------------------------------
>
>                 Key: MATH-683
>                 URL: https://issues.apache.org/jira/browse/MATH-683
>             Project: Commons Math
>          Issue Type: New Feature
>    Affects Versions: 3.0
>         Environment: All
>            Reporter: DI COSTANZO
>            Priority: Trivial
>
> Create a method shift to transform a polynomial P(k) in P(k + a) where a is any double
value.
> The polynomial sum(ai * k^i) turns into sum(ai * (k+a)^i)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message