Mathematica 9 is now available
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 1999

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

Search the Archive

questions about delayed expression.

  • To: mathgroup at
  • Subject: [mg19862] questions about delayed expression.
  • From: d8442803 at (Wen-Feng Hsiao)
  • Date: Sun, 19 Sep 1999 01:20:45 -0400
  • Organization: MIS
  • Sender: owner-wri-mathgroup at


   The following is the process that I run in my notebook.

a[x_] := x + 4
b[x_] := -3 x + 8

sola = x /. Solve[{a[x] == c}, x];
solb = x /. Solve[{b[x] == c}, x];

Inter[c_] := Interval[{sola[[1]], solb[[1]]}]        


\!\(Interval[{\(-4\) + c, \(8 - c\)\/3}]\)

\!\(Interval[{\(-4\) + c, \(8 - c\)\/3}]\)

My questions are: 
1. Why Inter[.3] and Inter[.4] cannot be evaluated? Their results should 
not be the same. This is not my intention.

2. I don't know if there is any better way to extract the 'root(s)' from 
the output of 'Solve' command. The output form is {{x->root1}, {x-
>root2}, ...{}}. If I use 'ReplaceAll'(/.) command, it will remain a list 
of solutions of x. It seems I can only use element operation to extract 
the root(s) from the solution list? In my case, I use sola[[1]] and 
Please give me suggestions. Thanks for your help.

  • Prev by Date: Re: Some problems with DSolve and NDSolve
  • Next by Date: Re: Excel
  • Previous by thread: RE: Mathematica can't....
  • Next by thread: Re: questions about delayed expression.