Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Program -

Aim To evaluate value of function f(x) for s= 1, 0.1, 0.01 and show it
tends to 5.

-->function y=f(x)
-->y=(1/sqrt(2*(%pi)*(s^2)))*(%e)^(-((x-2)^2)/(2*(s^2)))*(x+3)
-->endfunction

-->X=integrate('f','x',a,b)

Lower limit a Upper limit b Value of X(s=1) Value of X(s=0.1) Value of X(s=0.01)
-0.5 0.5 0.1909984 1.282D-50 0
-1 1 0.5489879 3.040D-23 0
-1.5 1.5 1.1903319 0.0000013 0
-1.7 1.7 1.5289409 0.0063063 9.96D-201
-1.9 1.9 1.9038664 0.7690792 6.209D-24
-2 2 2.1010332 2.4601058 2.4960106
-2.01 2.01 2.1210012 2.6594439 4.204304
-2.03 2.03 2.1610488 3.0514183 4.9932062
-2.05 2.05 2.2012315 3.4221058 4.9999986
-2.5 2.5 3.105246 4.9999984 5
-3 3 3.9647531 5 5
-3.5 3.5 4.5364464 5 5
-4 4 4.8322584 5 5
-4.5 4.5 4.9514234 5 5
-5 5 4.9888187 5 5
-5.5 5.5 4.9979642 5 5
-6 6 4.9997078 5 5
-6.5 6.5 4.999967 5 5
-7 7 4.9999971 5 5
-7.5 7.5 4.9999998 5 5
-8 8 5 5 5
-8.5 8.5 5 5 5
-9 9 5 5 5

RB

You might also like