Question: proc won't evaluate numerically

proc.mwf := proc (a) if a <= 0 then 0 elif a <= evalf(e*sin((1/2)*B)) then (-1)*2.005689708*a elif a <= evalf(2*e*sin((1/2)*B)) then (-1)*2.005689708*a+5.369606170 else 0 end if end proc; f(1)

why doesn't this evaluate to a numerical value when u supply an a value for 'a'.

can someone modify it......

Please Wait...