# Simple problem involving an integral returns the error message NIntegrate::inumr [closed]

I am trying to solve the function below for values of y of 0.5, 1, 1.5, 2, 2.5, and 3.

This is how I defined the function:

f[y_]:=1-0.484*Integrate[E^(-x)Sinh[Sqrt[2x]],{x, 0, y}]


When I input f[0.5] I receive an output with the definite integral in terms of x written out but not solved. When I attempt to solve for a numerical answer I get the error message NIntegrate::inumr NIntegrate::inumr: The integrand E^-x sinh[Sqrt Sqrt[x]] has evaluated to non-numerical values for all sampling points in the region with boundaries {{0,0.5}}.

Is this a syntax error on my part? How should I go about fixing this error? Thank you in advance for any responses.

• Just typing in your integral directly gives the solution for any y: f[y_] :=1 - 0.121 (Sqrt[ 2 E \[Pi]] (-Erf[1/Sqrt - Sqrt[y]] + Erf[1/Sqrt + Sqrt[y]]) + 4 Sinh[Sqrt Sqrt[y]] (-Cosh[y] + Sinh[y])) – Felix Mar 1 '17 at 5:12
• I'm voting to close this question as off-topic because I cannot reproduce the problem the user is experiencing; – m_goldberg Mar 1 '17 at 10:58

Table[1 - 0.484*Integrate[E^(-x) Sinh[Sqrt[2 x]], {x, 0, y}], {y, 0, 0.5, 0.1}]