Question: help! can't plot 3d image for this function?

 dear all:

   i have wirte a programme for a defined function as follows:

  med := proc (f1, f2, f3) if f3 <= f1 and f2 <= f1 then if f3 <= f2 then f2 else f3 end if elif f3 <= f2 and f1 <= f2 then if f3 <= f1 then f1 else f3 end if elif f1 <= f3 and f2 <= f3 then if f2 <= f1 then f1 else f2 end if end if end proc

#the med function is for get the mediume number from any givend three numbers.#


SS := proc (I3, I5) local Delta, Res, R1, R2, R3, S, temp, temp1, temp2, temp3, a, b, c, g; g := proc (x) options operator, arrow; 1-2*sin(x)*(sin(x)+I3*sin(3*x)+I5*sin(5*x)) end proc; a := (1/4)*(-I3-5*I5)/I5; b := (1/32)*(2+6*I3+10*I5)/I5; c := -(1/32)/I5; Delta := -I3^2-10*I5*I3-125*I5^4+4*I5-37*I5^2+150*I5^3+50*I5*I3^2-10*I5^2*I3+2*I3^3-12*I5*I3^3-10*I5^2*I3^2-9*I3^4-100*I5^3*I3; Res := solve(y^3+a*y^2+b*y+c = 0, y); R1 := evalf(Res[1]); R2 := evalf(Res[2]); R3 := evalf(Res[3]); if 0 < Delta then temp := Re(R1); S := 2*(int(g(x), x = 0 .. arcsin(sqrt(temp)))) elif Delta <= 0 then temp1 := min(Re(R1), Re(R2), Re(R3)); temp3 := max(Re(R1), Re(R2), Re(R3)); temp2 := med(Re(R1), Re(R2), Re(R3)); if abs(int(g(x), x = arcsin(sqrt(temp1)) .. arcsin(sqrt(temp2)))) < abs(int(g(x), x = arcsin(sqrt(temp2)) .. arcsin(sqrt(temp3)))) then S := 2*abs(int(g(x), x = arcsin(sqrt(temp3)) .. (1/2)*Pi)) else S := 2*abs(int(g(x), x = 0 .. arcsin(sqrt(temp1)))) end if end if end proc

# SS function has two arguments: I3,I5. Acoordint to different I3,I5 values, the SS funtion returns different values and I3,I5  must satisfied I3^2 +I5^2<=0.297#

Eventually, i want plot 3d image for SS(I3,I5), so i use plot3d command in maple :

plot3d(SS(I3, I5), I3 = [0.1e-2, .3], I5 = [0.1e-2, .3], style = point)

It shows error information  like this: Error, (in SS) cannot determine if this expression is true or false: 0 < -I3^2-10*I5*I3-125*I5^4+4*I5-37*I5^2+150*I5^3+50*I5*I3^2-10*I5^2*I3+2*I3^3-12*I5*I3^3-10*I5^2*I3^2-9*I3^4-100*I5^3*I3 "

So, i didn't konw why this phenomenon happended, what's wrong with this SS function?  pls help me?

tks for ur help , looking forward for ur reply!


 

Please Wait...