Skip to main content
added 4 characters in body
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

This is one of the situations that With is designed to handle.

g[x_] := NIntegrate[u/(1 + u), {u, 0, x}]
f[x_] := With[{u = g[x]}, u^2 + u]

Then

Plot[f[x], {x, 0, 5}]

plot

This is one of situations that With is designed to handle.

g[x_] := NIntegrate[u/(1 + u), {u, 0, x}]
f[x_] := With[{u = g[x]}, u^2 + u]

Then

Plot[f[x], {x, 0, 5}]

plot

This is one of the situations that With is designed to handle.

g[x_] := NIntegrate[u/(1 + u), {u, 0, x}]
f[x_] := With[{u = g[x]}, u^2 + u]

Then

Plot[f[x], {x, 0, 5}]

plot

Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

This is one of situations that With is designed to handle.

g[x_] := NIntegrate[u/(1 + u), {u, 0, x}]
f[x_] := With[{u = g[x]}, u^2 + u]

Then

Plot[f[x], {x, 0, 5}]

plot