Skip to main content
Post Closed as "Not suitable for this site" by Mr.Wizard
Improved formatting
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

Say I have a piecewise function:

V[m_] := Piecewise[{{(1 + m)^2, m >= 1}, {Log[m], m < 1}}]

And I input a large list of mm values, I get three lists output: The list of V[m_]V[m] values, the list of mm values for which m>=1m >= 1, and the list of mm values for which m<1m < 1.

I only require an output list of the V[m_]V[m] values. How do I get rid of the other two lists?

Apologies if this is an obvious question! Any help would be greatly appreciated.

Say I have a piecewise function:

V[m_] := Piecewise[{{(1 + m)^2, m >= 1}, {Log[m], m < 1}}]

And I input a large list of m values, I get three lists output: The list of V[m_] values, the list of m values for which m>=1, and the list of m values for which m<1.

I only require an output list of the V[m_] values. How do I get rid of the other two lists?

Apologies if this is an obvious question! Any help would be greatly appreciated.

Say I have a piecewise function:

V[m_] := Piecewise[{{(1 + m)^2, m >= 1}, {Log[m], m < 1}}]

And I input a large list of m values, I get three lists output: The list of V[m] values, the list of m values for which m >= 1, and the list of m values for which m < 1.

I only require an output list of the V[m] values. How do I get rid of the other two lists?

Apologies if this is an obvious question! Any help would be greatly appreciated.

Source Link

Selecting only list of function output from piecewise function output

Say I have a piecewise function:

V[m_] := Piecewise[{{(1 + m)^2, m >= 1}, {Log[m], m < 1}}]

And I input a large list of m values, I get three lists output: The list of V[m_] values, the list of m values for which m>=1, and the list of m values for which m<1.

I only require an output list of the V[m_] values. How do I get rid of the other two lists?

Apologies if this is an obvious question! Any help would be greatly appreciated.