MathGroup Archive 2001

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

Search the Archive

RE: How to define a polyfunction?

  • To: mathgroup at
  • Subject: [mg27406] RE: [mg27389] How to define a polyfunction?
  • From: "Higinio Ramos" <higra at>
  • Date: Sun, 25 Feb 2001 00:53:29 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

----- Original Message ----- 
From: liwen liwen <gzgear at>
To: mathgroup at
Subject: [mg27406] [mg27389] How to define a polyfunction?

> Dear friend,
>          How are you!Now I encounter a problem that I
> can not solve for a long time .
> It can be express simplely as how to define a
> polyfunction,for example,a simple polyfunction may be
> defined as that:
> Key[t_]:=If[(t>0),1,0];
> It is easy to define.However,it will be more difficult
> when the condition turns more complicate.For instance:
> golf=t^2-t;
> Key[t_]:=If[(D[golf[t],t]>0),(t^4+t*3),(t^2.5-t)];

This may be a solution:
Even you mey plot the function wher it is defined:

  • Prev by Date: Statistics`MeanDifferenceTest
  • Next by Date: Integration problem
  • Previous by thread: Re: Statistics`MeanDifferenceTest
  • Next by thread: Re: How to define a polyfunction?