MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Function definition


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



  • Prev by Date: Problem with Fonts
  • Next by Date: List Position
  • Previous by thread: Re: Problem with Fonts
  • Next by thread: Re: Function definition