Function definition

*To*: mathgroup at smc.vnet.net*Subject*: [mg15737] Function definition*From*: Rangachari Kidambi <rkidambi at spock.usc.edu>*Date*: Fri, 5 Feb 1999 03:42:31 -0500 (EST)*Sender*: owner-wri-mathgroup at wolfram.com

Hi, I need to define a function f(theta,phi) as f(theta,phi) = f1 if 0 <= theta <= theta0, 0 <= phi <= phi0 f(theta,phi) = f2 otherwise where theta, phi are spherical polar coordinates, <= is less than or equal to and theta0 and phi0 are constants. I have tried using Do loops and If statements but haven't been successful. Thanks for any help Ranga Kidambi