Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

RE: How to ...?

  • To: mathgroup at
  • Subject: [mg36355] RE: [mg36309] How to ...?
  • From: "Florian Jaccard" <jaccardf at>
  • Date: Mon, 2 Sep 2002 04:09:28 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

In[4]:= f[x_ /; 0 < x < 6] := x^2

In[5]:=f[x_/; x >= 6]:=x+1

Meilleures salutations

Florian Jaccard
e-mail : jaccardf at

-----Message d'origine-----
De : Paskoski [mailto:berlusconi_pagliusi at]
Envoyé : sam., 31. août 2002 07:26
À : mathgroup at
Objet : [mg36309] How to ...?

Dear MathGroup,
I'd like to use Mathematica 4.0 to write a function having different
expressions in different domain's intervals.
Let's say:

F[x_]=    x^2   if 0<x<6
               x+1   if x>=6

I know It's a stupid syntax problem, but I really do not know how/where to
search the solution on the Mathematica Book

Thank you in advance,


  • Prev by Date: RE: PlotLabel
  • Next by Date: Re: How to ...?
  • Previous by thread: Re: How to ...?
  • Next by thread: Re: How to ...?