MathGroup Archive 1999

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

Search the Archive

Re: Function definition

  • To: mathgroup at
  • Subject: [mg15796] Re: Function definition
  • From: "Martin Rommel" <rommel at>
  • Date: Sun, 7 Feb 1999 02:04:12 -0500 (EST)
  • Organization: EarthLink Network, Inc.
  • References: <79ea4l$>
  • Sender: owner-wri-mathgroup at

>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.

RTFM: 2.5.8


f[theta_,phi_]:=f1 /;


Again: More elegant solutions are appreciated!

>I have tried using Do loops and If statements but haven't been


  • Prev by Date: Re: Q: how to list vertices of the Geodesate[] of a polyhedron?
  • Next by Date: Re: How to use DisplayTogether[] properly?
  • Previous by thread: Re: Function definition
  • Next by thread: Re: Function definition