Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Three piece function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60221] Re: [mg60197] Three piece function
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 8 Sep 2005 04:52:58 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Use Piecewise

f[x_] := Piecewise[{
        {g1[x], x < a}, 
        {(g2[b] - g1[a])(x - a)/(b - a) + g1[a], a <= x <= b}, 
        {g2[x], b < x}}];


Bob Hanlon

> 
> From: "Steven Jonak" <JonakSt at gw.kirkwood.k12.mo.us>
To: mathgroup at smc.vnet.net
> Date: 2005/09/07 Wed AM 04:03:55 EDT
> Subject: [mg60221] [mg60197] Three piece function
> 
> I'm a little new to using Mathematica for creating handouts/quizzes and
> tests so please bear with me!  I'm using Mathematica to write a test and
> I can't seem to get a decent looking three-piece function.  For two
> pieces, the typesetting palette works fine.  I used Show Expression to
> see how they got the curly bracket on the left side but when I tried to
> change it to three pieces with a curly bracket on the left side (a one
> row, three column matrix with the bracket) the size of the bracket
> doesn't change--and looks bad.
> Any suggestions?
> 
> S Jonak
> "Maintain an even strain."
> 
> 


  • Prev by Date: Re: Three piece function
  • Next by Date: Re: true limit of mathematica ? Help me !!!
  • Previous by thread: Re: Three piece function
  • Next by thread: Re: Three piece function