MathGroup Archive 2007

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

Search the Archive

Re: Picewise Function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82120] Re: [mg82072] Picewise Function
  • From: DrMajorBob <drmajorbob at bigfoot.com>
  • Date: Fri, 12 Oct 2007 03:03:48 -0400 (EDT)
  • Organization: Deep Space Corps of Engineers
  • References: <3889394.1192079092221.JavaMail.root@m35>
  • Reply-to: drmajorbob at bigfoot.com

It's round-about, I admit, but f2 fits the requirements you've listed:

Clear[f1, f2]
f1[zve_, kap_] := (est07[zve + kap] - est07[zve])/kap
f2[zve_, kap_] /; f1[zve, kap] < 0.25 := f1[zve, kap]

Any use of f2 with two arguments will result in computing f1[zve, kap], 
but f2[zve, kap] will return unevaluated if f1[zve, kap] >= 0.25.

Bobby

On Wed, 10 Oct 2007 23:20:58 -0500, Frank Hechtner <frank.hechtner at rub.de>  
wrote:

> hi,
>
> I'm in trouble with a function. i created the following one
> (est07[zve + kap] - est07[zve])/kap (something about german taxes,
> refers to other functions)
>
> Now i want mathematica to tell that this function uses a specific
> domain. The function should only be defined if the result of the
> evaluation is <= 0.25.
>
> Does anyone know how to realize this=?
> Thanks for help
>
> frank
>
>



-- 

DrMajorBob at bigfoot.com


  • Prev by Date: Re: Re: Change colors in contour plot and including a legend?
  • Next by Date: Maximum file size
  • Previous by thread: Re: Picewise Function
  • Next by thread: Quantum Algebra