How to write the shifted Chebyshev polynomials (the first kind) in mathematica?












2












$begingroup$


Is it possible to write the shifted Chebyshev polynomials (the first kind) in Mathematica? The formula is:



$$P_n(x)=sum_{k=0}^{leftlfloortfrac{n}{2}rightrfloor}(-1)^k 2^{n-2k-1}frac{n}{n-k}binom{n-k}{k}(2x-1)^{n-2k}$$



The output should be in a vector {..., ..., ..., ... etc.}
Thanks!!










share|improve this question











$endgroup$












  • $begingroup$
    By "vector", do you mean a vector of the first few polynomials?
    $endgroup$
    – J. M. is away
    Apr 1 at 8:36










  • $begingroup$
    yes please depend on n
    $endgroup$
    – user62716
    Apr 1 at 8:38
















2












$begingroup$


Is it possible to write the shifted Chebyshev polynomials (the first kind) in Mathematica? The formula is:



$$P_n(x)=sum_{k=0}^{leftlfloortfrac{n}{2}rightrfloor}(-1)^k 2^{n-2k-1}frac{n}{n-k}binom{n-k}{k}(2x-1)^{n-2k}$$



The output should be in a vector {..., ..., ..., ... etc.}
Thanks!!










share|improve this question











$endgroup$












  • $begingroup$
    By "vector", do you mean a vector of the first few polynomials?
    $endgroup$
    – J. M. is away
    Apr 1 at 8:36










  • $begingroup$
    yes please depend on n
    $endgroup$
    – user62716
    Apr 1 at 8:38














2












2








2





$begingroup$


Is it possible to write the shifted Chebyshev polynomials (the first kind) in Mathematica? The formula is:



$$P_n(x)=sum_{k=0}^{leftlfloortfrac{n}{2}rightrfloor}(-1)^k 2^{n-2k-1}frac{n}{n-k}binom{n-k}{k}(2x-1)^{n-2k}$$



The output should be in a vector {..., ..., ..., ... etc.}
Thanks!!










share|improve this question











$endgroup$




Is it possible to write the shifted Chebyshev polynomials (the first kind) in Mathematica? The formula is:



$$P_n(x)=sum_{k=0}^{leftlfloortfrac{n}{2}rightrfloor}(-1)^k 2^{n-2k-1}frac{n}{n-k}binom{n-k}{k}(2x-1)^{n-2k}$$



The output should be in a vector {..., ..., ..., ... etc.}
Thanks!!







special-functions polynomials






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 1 at 8:44









J. M. is away

98.9k10311467




98.9k10311467










asked Apr 1 at 8:23









user62716user62716

555




555












  • $begingroup$
    By "vector", do you mean a vector of the first few polynomials?
    $endgroup$
    – J. M. is away
    Apr 1 at 8:36










  • $begingroup$
    yes please depend on n
    $endgroup$
    – user62716
    Apr 1 at 8:38


















  • $begingroup$
    By "vector", do you mean a vector of the first few polynomials?
    $endgroup$
    – J. M. is away
    Apr 1 at 8:36










  • $begingroup$
    yes please depend on n
    $endgroup$
    – user62716
    Apr 1 at 8:38
















$begingroup$
By "vector", do you mean a vector of the first few polynomials?
$endgroup$
– J. M. is away
Apr 1 at 8:36




$begingroup$
By "vector", do you mean a vector of the first few polynomials?
$endgroup$
– J. M. is away
Apr 1 at 8:36












$begingroup$
yes please depend on n
$endgroup$
– user62716
Apr 1 at 8:38




$begingroup$
yes please depend on n
$endgroup$
– user62716
Apr 1 at 8:38










1 Answer
1






active

oldest

votes


















5












$begingroup$

With[{m = 100}, 
ChebyshevT[Range[m], 2 x - 1] ==
Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k),
{k, 0, Quotient[n, 2]}], {n, m}] // Expand]
True


Comparing your formula with formula 22.3.6 in Abramowitz and Stegun, we find that all you need to do is



ChebyshevT[Range[0, m - 1], 2 x - 1]


if you need an entire pile of these shifted polynomials.






share|improve this answer











$endgroup$













  • $begingroup$
    Many thanks, put the output just word true not terms? I need few terms in vector depend on n, what about [n/2] is it greatest integer number?
    $endgroup$
    – user62716
    Apr 1 at 9:00










  • $begingroup$
    The first snippet just shows that the simple expression is the same as your explicit sum. The second snippet is what you want for evaluation. Assign some positive integer to m and evaluate ChebyshevT[Range[0, m - 1], 2 x - 1] (e.g. ChebyshevT[Range[0, 100 - 1], 2 x - 1] to get a hundred of them).
    $endgroup$
    – J. M. is away
    Apr 1 at 9:01












  • $begingroup$
    Dear, 1) You mean I have to use ChebyshevT[Range[0, m - 1], 2 x - 1].?2) the first code With[{m = 100}, ChebyshevT[Range[m], 2 x - 1] == Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k), {k, 0, Quotient[n, 2]}], {n, m}] // Expand] for what then?3) [n/2] is it greatest integer number?
    $endgroup$
    – user62716
    Apr 1 at 9:09












Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "387"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f194359%2fhow-to-write-the-shifted-chebyshev-polynomials-the-first-kind-in-mathematica%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5












$begingroup$

With[{m = 100}, 
ChebyshevT[Range[m], 2 x - 1] ==
Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k),
{k, 0, Quotient[n, 2]}], {n, m}] // Expand]
True


Comparing your formula with formula 22.3.6 in Abramowitz and Stegun, we find that all you need to do is



ChebyshevT[Range[0, m - 1], 2 x - 1]


if you need an entire pile of these shifted polynomials.






share|improve this answer











$endgroup$













  • $begingroup$
    Many thanks, put the output just word true not terms? I need few terms in vector depend on n, what about [n/2] is it greatest integer number?
    $endgroup$
    – user62716
    Apr 1 at 9:00










  • $begingroup$
    The first snippet just shows that the simple expression is the same as your explicit sum. The second snippet is what you want for evaluation. Assign some positive integer to m and evaluate ChebyshevT[Range[0, m - 1], 2 x - 1] (e.g. ChebyshevT[Range[0, 100 - 1], 2 x - 1] to get a hundred of them).
    $endgroup$
    – J. M. is away
    Apr 1 at 9:01












  • $begingroup$
    Dear, 1) You mean I have to use ChebyshevT[Range[0, m - 1], 2 x - 1].?2) the first code With[{m = 100}, ChebyshevT[Range[m], 2 x - 1] == Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k), {k, 0, Quotient[n, 2]}], {n, m}] // Expand] for what then?3) [n/2] is it greatest integer number?
    $endgroup$
    – user62716
    Apr 1 at 9:09
















5












$begingroup$

With[{m = 100}, 
ChebyshevT[Range[m], 2 x - 1] ==
Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k),
{k, 0, Quotient[n, 2]}], {n, m}] // Expand]
True


Comparing your formula with formula 22.3.6 in Abramowitz and Stegun, we find that all you need to do is



ChebyshevT[Range[0, m - 1], 2 x - 1]


if you need an entire pile of these shifted polynomials.






share|improve this answer











$endgroup$













  • $begingroup$
    Many thanks, put the output just word true not terms? I need few terms in vector depend on n, what about [n/2] is it greatest integer number?
    $endgroup$
    – user62716
    Apr 1 at 9:00










  • $begingroup$
    The first snippet just shows that the simple expression is the same as your explicit sum. The second snippet is what you want for evaluation. Assign some positive integer to m and evaluate ChebyshevT[Range[0, m - 1], 2 x - 1] (e.g. ChebyshevT[Range[0, 100 - 1], 2 x - 1] to get a hundred of them).
    $endgroup$
    – J. M. is away
    Apr 1 at 9:01












  • $begingroup$
    Dear, 1) You mean I have to use ChebyshevT[Range[0, m - 1], 2 x - 1].?2) the first code With[{m = 100}, ChebyshevT[Range[m], 2 x - 1] == Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k), {k, 0, Quotient[n, 2]}], {n, m}] // Expand] for what then?3) [n/2] is it greatest integer number?
    $endgroup$
    – user62716
    Apr 1 at 9:09














5












5








5





$begingroup$

With[{m = 100}, 
ChebyshevT[Range[m], 2 x - 1] ==
Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k),
{k, 0, Quotient[n, 2]}], {n, m}] // Expand]
True


Comparing your formula with formula 22.3.6 in Abramowitz and Stegun, we find that all you need to do is



ChebyshevT[Range[0, m - 1], 2 x - 1]


if you need an entire pile of these shifted polynomials.






share|improve this answer











$endgroup$



With[{m = 100}, 
ChebyshevT[Range[m], 2 x - 1] ==
Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k),
{k, 0, Quotient[n, 2]}], {n, m}] // Expand]
True


Comparing your formula with formula 22.3.6 in Abramowitz and Stegun, we find that all you need to do is



ChebyshevT[Range[0, m - 1], 2 x - 1]


if you need an entire pile of these shifted polynomials.







share|improve this answer














share|improve this answer



share|improve this answer








answered Apr 1 at 8:44


























community wiki





J. M. is away













  • $begingroup$
    Many thanks, put the output just word true not terms? I need few terms in vector depend on n, what about [n/2] is it greatest integer number?
    $endgroup$
    – user62716
    Apr 1 at 9:00










  • $begingroup$
    The first snippet just shows that the simple expression is the same as your explicit sum. The second snippet is what you want for evaluation. Assign some positive integer to m and evaluate ChebyshevT[Range[0, m - 1], 2 x - 1] (e.g. ChebyshevT[Range[0, 100 - 1], 2 x - 1] to get a hundred of them).
    $endgroup$
    – J. M. is away
    Apr 1 at 9:01












  • $begingroup$
    Dear, 1) You mean I have to use ChebyshevT[Range[0, m - 1], 2 x - 1].?2) the first code With[{m = 100}, ChebyshevT[Range[m], 2 x - 1] == Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k), {k, 0, Quotient[n, 2]}], {n, m}] // Expand] for what then?3) [n/2] is it greatest integer number?
    $endgroup$
    – user62716
    Apr 1 at 9:09


















  • $begingroup$
    Many thanks, put the output just word true not terms? I need few terms in vector depend on n, what about [n/2] is it greatest integer number?
    $endgroup$
    – user62716
    Apr 1 at 9:00










  • $begingroup$
    The first snippet just shows that the simple expression is the same as your explicit sum. The second snippet is what you want for evaluation. Assign some positive integer to m and evaluate ChebyshevT[Range[0, m - 1], 2 x - 1] (e.g. ChebyshevT[Range[0, 100 - 1], 2 x - 1] to get a hundred of them).
    $endgroup$
    – J. M. is away
    Apr 1 at 9:01












  • $begingroup$
    Dear, 1) You mean I have to use ChebyshevT[Range[0, m - 1], 2 x - 1].?2) the first code With[{m = 100}, ChebyshevT[Range[m], 2 x - 1] == Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k), {k, 0, Quotient[n, 2]}], {n, m}] // Expand] for what then?3) [n/2] is it greatest integer number?
    $endgroup$
    – user62716
    Apr 1 at 9:09
















$begingroup$
Many thanks, put the output just word true not terms? I need few terms in vector depend on n, what about [n/2] is it greatest integer number?
$endgroup$
– user62716
Apr 1 at 9:00




$begingroup$
Many thanks, put the output just word true not terms? I need few terms in vector depend on n, what about [n/2] is it greatest integer number?
$endgroup$
– user62716
Apr 1 at 9:00












$begingroup$
The first snippet just shows that the simple expression is the same as your explicit sum. The second snippet is what you want for evaluation. Assign some positive integer to m and evaluate ChebyshevT[Range[0, m - 1], 2 x - 1] (e.g. ChebyshevT[Range[0, 100 - 1], 2 x - 1] to get a hundred of them).
$endgroup$
– J. M. is away
Apr 1 at 9:01






$begingroup$
The first snippet just shows that the simple expression is the same as your explicit sum. The second snippet is what you want for evaluation. Assign some positive integer to m and evaluate ChebyshevT[Range[0, m - 1], 2 x - 1] (e.g. ChebyshevT[Range[0, 100 - 1], 2 x - 1] to get a hundred of them).
$endgroup$
– J. M. is away
Apr 1 at 9:01














$begingroup$
Dear, 1) You mean I have to use ChebyshevT[Range[0, m - 1], 2 x - 1].?2) the first code With[{m = 100}, ChebyshevT[Range[m], 2 x - 1] == Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k), {k, 0, Quotient[n, 2]}], {n, m}] // Expand] for what then?3) [n/2] is it greatest integer number?
$endgroup$
– user62716
Apr 1 at 9:09




$begingroup$
Dear, 1) You mean I have to use ChebyshevT[Range[0, m - 1], 2 x - 1].?2) the first code With[{m = 100}, ChebyshevT[Range[m], 2 x - 1] == Table[Sum[(-1)^k 2^(n - 2 k - 1) Binomial[n - k, k] (2 x - 1)^(n - 2 k) n/(n - k), {k, 0, Quotient[n, 2]}], {n, m}] // Expand] for what then?3) [n/2] is it greatest integer number?
$endgroup$
– user62716
Apr 1 at 9:09


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematica Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f194359%2fhow-to-write-the-shifted-chebyshev-polynomials-the-first-kind-in-mathematica%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?