Skip to main content
added 624 characters in body
Source Link
att
  • 22.7k
  • 2
  • 19
  • 69

Wolfram Language (Mathematica), 28 bytes

\!\(\_{x,#}#2\)/#!/.x->0&

Try it online!

Input [k, p], where p is a polynomial in terms of x. Outputs \$c_k\$.

is \[DifferenceDelta]. This character has code point U+F4A4; the documentation incorrectly claims that it has code point U+2206. That character, , is actually the similar-looking \[Laplacian] (undocumented).

Returns \$\frac{\Delta^k p(0)}{k!}\$, where \$\Delta^k p\$ is the \$k\$th "discrete derivative" of \$p\$ defined by \begin{align*} \Delta^0 p(x)&=p(x),\\ \Delta^{n+1}p(x)&=\Delta^n p(x+1)-\Delta^n p(x). \end{align*}

(This is analogous to obtaining the coefficients of the usual power series representation via differentiation, where the coefficient of the \$x^k\$ term is \$\frac{D^k p(0)}{k!}\$.)

Wolfram Language (Mathematica), 27 bytes

0~Range~#~StirlingS2~#2.#3&

Try it online!

Input [n, k, p], where n is the degree of the polynomial and p is an ascending list of coefficients . Outputs \$c_k\$.

Wolfram Language (Mathematica), 28 bytes

\!\(\_{x,#}#2\)/#!/.x->0&

Try it online!

Input [k, p], where p is a polynomial in terms of x. Outputs \$c_k\$.

is \[DifferenceDelta]. This character has code point U+F4A4; the documentation incorrectly claims that it has code point U+2206. That character, , is actually the similar-looking \[Laplacian] (undocumented).

Returns \$\frac{\Delta^k p(0)}{k!}\$, where \$\Delta^k p\$ is the \$k\$th "discrete derivative" of \$p\$ defined by \begin{align*} \Delta^0 p(x)&=p(x),\\ \Delta^{n+1}p(x)&=\Delta^n p(x+1)-\Delta^n p(x). \end{align*}

(This is analogous to obtaining the coefficients of the usual power series representation via differentiation, where the coefficient of the \$x^k\$ term is \$\frac{D^k p(0)}{k!}\$.)

Wolfram Language (Mathematica), 28 bytes

\!\(\_{x,#}#2\)/#!/.x->0&

Try it online!

Input [k, p], where p is a polynomial in terms of x. Outputs \$c_k\$.

is \[DifferenceDelta]. This character has code point U+F4A4; the documentation incorrectly claims that it has code point U+2206. That character, , is actually the similar-looking \[Laplacian] (undocumented).

Returns \$\frac{\Delta^k p(0)}{k!}\$, where \$\Delta^k p\$ is the \$k\$th "discrete derivative" of \$p\$ defined by \begin{align*} \Delta^0 p(x)&=p(x),\\ \Delta^{n+1}p(x)&=\Delta^n p(x+1)-\Delta^n p(x). \end{align*}

(This is analogous to obtaining the coefficients of the usual power series representation via differentiation, where the coefficient of the \$x^k\$ term is \$\frac{D^k p(0)}{k!}\$.)

Wolfram Language (Mathematica), 27 bytes

0~Range~#~StirlingS2~#2.#3&

Try it online!

Input [n, k, p], where n is the degree of the polynomial and p is an ascending list of coefficients . Outputs \$c_k\$.

added 167 characters in body
Source Link
att
  • 22.7k
  • 2
  • 19
  • 69

Wolfram Language (Mathematica), 28 bytes

\!\(\_{x,#}#2\)/#!/.x->0&

Try it online!

Input [k, p], where p is a polynomial in terms of x. Outputs the \$k\$th coefficient\$c_k\$.

is \[DifferenceDelta]. This character has code point U+F4A4; the documentation incorrectly claims that it has code point U+2206. That character, , is actually the similar-looking \[Laplacian] (undocumented).

Returns \$\frac{\Delta^k p(0)}{k!}\$, where \$\Delta^k p\$ is the \$k\$th "discrete derivative" of \$p\$ defined by \begin{align*} \Delta^0 p(x)&=p(x),\\ \Delta^{n+1}p(x)&=\Delta^n p(x+1)-\Delta^n p(x). \end{align*}

(This is analogous to obtaining the coefficients of the usual power series representation via differentiation, where the coefficient of the \$x^k\$ term is \$\frac{D^k p(0)}{k!}\$.)

Wolfram Language (Mathematica), 28 bytes

\!\(\_{x,#}#2\)/#!/.x->0&

Try it online!

Input [k, p], where p is a polynomial in terms of x. Outputs the \$k\$th coefficient.

is \[DifferenceDelta]. This character has code point U+F4A4; the documentation incorrectly claims that it has code point U+2206. That character, , is actually the similar-looking \[Laplacian] (undocumented).

Returns \$\frac{\Delta^k p(0)}{k!}\$, where \$\Delta^k p\$ is the \$k\$th "discrete derivative" of \$p\$ defined by \begin{align*} \Delta^0 p(x)&=p(x),\\ \Delta^{n+1}p(x)&=\Delta^n p(x+1)-\Delta^n p(x). \end{align*}

Wolfram Language (Mathematica), 28 bytes

\!\(\_{x,#}#2\)/#!/.x->0&

Try it online!

Input [k, p], where p is a polynomial in terms of x. Outputs \$c_k\$.

is \[DifferenceDelta]. This character has code point U+F4A4; the documentation incorrectly claims that it has code point U+2206. That character, , is actually the similar-looking \[Laplacian] (undocumented).

Returns \$\frac{\Delta^k p(0)}{k!}\$, where \$\Delta^k p\$ is the \$k\$th "discrete derivative" of \$p\$ defined by \begin{align*} \Delta^0 p(x)&=p(x),\\ \Delta^{n+1}p(x)&=\Delta^n p(x+1)-\Delta^n p(x). \end{align*}

(This is analogous to obtaining the coefficients of the usual power series representation via differentiation, where the coefficient of the \$x^k\$ term is \$\frac{D^k p(0)}{k!}\$.)

added 228 characters in body
Source Link
att
  • 22.7k
  • 2
  • 19
  • 69

Wolfram Language (Mathematica), 28 bytes

\!\(\_{x,#}#2\)/#!/.x->0&

Try it online!

Input [k, p], where p is a polynomial in terms of x. Outputs the \$k\$th coefficient.

is \[DifferenceDelta]. This character has code point U+F4A4; the documentation incorrectly claims that it has code point U+2206. That character, , is actually the similar-looking \[Laplacian] (\[Laplacian], undocumentedundocumented).

Returns \$\frac{\Delta^k p(0)}{k!}\$, where \$\Delta^k p\$ is the \$k\$th "discrete derivative" of \$p\$ defined by \begin{align*} \Delta^0 p(x)&=p(x),\\ \Delta^{n+1}p(x)&=\Delta^n p(x+1)-\Delta^n p(x). \end{align*}

Wolfram Language (Mathematica), 28 bytes

\!\(\_{x,#}#2\)/#!/.x->0&

Try it online!

Input [k, p], where p is a polynomial in terms of x. Outputs the \$k\$th coefficient.

is \[DifferenceDelta]. This character has code point U+F4A4; the documentation incorrectly claims that it has code point U+2206. That character is actually the similar-looking (\[Laplacian], undocumented).

Wolfram Language (Mathematica), 28 bytes

\!\(\_{x,#}#2\)/#!/.x->0&

Try it online!

Input [k, p], where p is a polynomial in terms of x. Outputs the \$k\$th coefficient.

is \[DifferenceDelta]. This character has code point U+F4A4; the documentation incorrectly claims that it has code point U+2206. That character, , is actually the similar-looking \[Laplacian] (undocumented).

Returns \$\frac{\Delta^k p(0)}{k!}\$, where \$\Delta^k p\$ is the \$k\$th "discrete derivative" of \$p\$ defined by \begin{align*} \Delta^0 p(x)&=p(x),\\ \Delta^{n+1}p(x)&=\Delta^n p(x+1)-\Delta^n p(x). \end{align*}

Source Link
att
  • 22.7k
  • 2
  • 19
  • 69
Loading