plotting with boundary conditions
- To: mathgroup at smc.vnet.net
- Subject: [mg34482] plotting with boundary conditions
- From: "Tayade Rajeshwary Gunwant" <rajeshwary at neo.tamu.edu>
- Date: Thu, 23 May 2002 03:32:26 -0400 (EDT)
- Reply-to: rajeshwary at neo.tamu.edu
- Sender: owner-wri-mathgroup at wolfram.com
Hi all, I need to plot a surface f(a,b) = a^2-2*c(a,b)+b^2; given the boundary conditions c(a,b)< ab Here c(a,b) is another function of (a,b) given by c(a,b) = 0.1*(a-1)^2+0.1*(b-1)^2-0.01 Is there a direct command to set these boundary conditions...?? If i give f[a_, b_] := If[c[a, b] < a*b, a^2 + b^2 - 2*c[a, b],]; Plot3D[f[a, b], {a, 0, 2}, {b, 0, 2}, AxesLabel -> {"a", "b", "f"}, ViewPoint -> {2, 2, 2}] I get error messages for the values of a and b for which f(a,b) doesnot exist. Can anybody please tell me how i can get this plot? Thanks raj