MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

How to evaluate a NIntegrate expression properly


Hi,
I have a problem regarding to how to use NIntegrate and NSolve together.
A sampe is as follwing:

f[y_] := NIntegrate[y^2*x^2, {x, 0, 3}]
NSolve[f[y] == 20, y]

Complaint:
\!\(NIntegrate::"inum" \(\(:\)\(\ \)\) "Integrand \!\(2.25`  \\\\  y\^2\)
is
    not numerical at \!\({x}\) = {1.5`}."\)

Thanks in advance.

X.Y.



  • Prev by Date: Is it doable in Mathematica? How?
  • Next by Date: Re: Caching of values and delayed sets
  • Previous by thread: Re: Is it doable in Mathematica? How?
  • Next by thread: Re: How to evaluate a NIntegrate expression properly