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: Entering constant placeholders

  • To: mathgroup at
  • Subject: [mg32353] Re: [mg32328] Entering constant placeholders
  • From: BobHanlon at
  • Date: Wed, 16 Jan 2002 03:30:05 -0500 (EST)
  • Sender: owner-wri-mathgroup at

In a message dated 1/15/02 3:11:07 AM, dglfl at writes:

>I can't seem to make this work.  When I enter the following, I get these
>SetAttributes[a,b,c, Constant]
>Syntax::tsntxi: "SetAttributes a,constant" is incomplete; more input is
>d(ax^3 + bx^2 + cx + d)/dx
>The answer should be 3ax^2+2bx+c .  I can't figure out how to tell
>mathematica that a,b, & c are constants.

SetAttributes[{a,b,c}, Constant];


3*a*x^2 + 2*b*x + c

Bob Hanlon
Chantilly, VA  USA

  • Prev by Date: How To Change A Rule
  • Next by Date: Re: Entering constant placeholders
  • Previous by thread: RE: Entering constant placeholders
  • Next by thread: Re: Entering constant placeholders