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 2000

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

Search the Archive

Re: Assumptions i Mathematica...

  • To: mathgroup at
  • Subject: [mg25709] Re: [mg25660] Assumptions i Mathematica...
  • From: Tomas Garza <tgarza01 at>
  • Date: Thu, 19 Oct 2000 04:35:33 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

It depends on what use you're going to give the restrictions or 
assumptions. If you define a function f[x] you might as well use 
conditions:  "lhs := rhs /; test is a definition to be used only if 
test yields True" (see the on-line Help Browser under "Condition"). For 

f[x_]:=  Sin[x]/; x>=0

says that f[x] is defined only for nonnegative x.

Tomas Garza
Mexico City

"Jes Hansen" <Whammer.antispam at> wrote:

> Hi, I'm quite new at this, and I havn't been able to figure out how to 
> Mathematica to assume that a variable, x, is positive. I have a 
> f(x), where I only want to consider positive values of x. I'm using 
> 3.0.

  • Prev by Date: Re: Assumptions i Mathematica...
  • Next by Date: Re: A question of matrix multiply, who can solve it?
  • Previous by thread: Re: Assumptions i Mathematica...
  • Next by thread: Re: Assumptions i Mathematica...