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 2005

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

Search the Archive

Re: Assigning (really dumb question)

  • To: mathgroup at
  • Subject: [mg61018] Re: Assigning (really dumb question)
  • From: Bill Rowe <readnewsciv at>
  • Date: Fri, 7 Oct 2005 03:38:09 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

On 10/6/05 at 4:08 AM, at wrote:

>What the heck am I doing wrong? I've been away from Mathematica for
>a while.

>I can't get it to evaluate the expressions at the solved values.

>r[q_] := 1800 q - .006 q^2
>c[q_] := 12100000 + 800 q + .004 q ^2

>qa = Solve[ D[ r[q]-c[q] , q] == 0, q]
>r[q] /. q -> qa

You've asked Mathematica to substitute the replacement rule qa for the variable q after evaluating r[q]. Since Solve returns a list of replacement rules you want to do

To reply via email subtract one hundred and four

  • Prev by Date: How to plot solutions of equations with Mathematica?
  • Next by Date: Re: Assigning (really dumb question)
  • Previous by thread: Re: Assigning (really dumb question)
  • Next by thread: Re: Assigning (really dumb question)