Skip to main content
added 55 characters in body
Source Link
Kuba
  • 137.7k
  • 13
  • 289
  • 751

The problem with:

CoefficientList[t, Variables[t]]

is that it appears to create a matrix with all the cross terms. Since you only want to first order terms, try out:

Coefficient[t, Variables[t], 1]
{1/2, 1/2, 2, 9/2, 8, 25/2, 18, 49/2, 32, 81/2}

instead.

The problem with:

CoefficientList[t, Variables[t]]

is that it appears to create a matrix with all the cross terms. Since you only want to first order terms, try out:

Coefficient[t, Variables[t], 1]

instead.

The problem with:

CoefficientList[t, Variables[t]]

is that it appears to create a matrix with all the cross terms. Since you only want to first order terms, try out:

Coefficient[t, Variables[t], 1]
{1/2, 1/2, 2, 9/2, 8, 25/2, 18, 49/2, 32, 81/2}

instead.

Source Link
Kevin
  • 41
  • 1

The problem with:

CoefficientList[t, Variables[t]]

is that it appears to create a matrix with all the cross terms. Since you only want to first order terms, try out:

Coefficient[t, Variables[t], 1]

instead.