Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: Multiple Constants

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83242] Re: Multiple Constants
  • From: dh <dh at metrohm.ch>
  • Date: Fri, 16 Nov 2007 05:20:50 -0500 (EST)
  • References: <fhh80l$946$1@smc.vnet.net>


Hi,

your syntax is incorrect. SetAttributes takes 2 arguments, where the 

arguments may be lists. Thherefore, instead of 

SetAttributes[a,b,c,Contstant]  you must say: 

SetAttributes[{a,b,c},Contstant]

hope this helps, Daniel



thehammerster at gmail.com wrote:

> Hi,

> I'm new to Mathematica and I feel like this is a stupid question but I

> can't seem to define more than one constant

> 

> If I type

> SetAttributes[a,b,c,Contstant]

> I get

> SetAttributes::argrx: SetAttributes called with 4 arguments; 2

> arguments are \expected.

> 

> I have three equations and three variables I want to solve for and I

> have 8 constants.

> 

> x+y+z=1

> b*x+c*y+d*z=A

> f*x+g*y+h*z=Q

> 

> b,c,d,A,f,g,h,Q are constants and I want a generic equations that I

> can use for many different variations of these constants.

> 

> I've done the calculation by hand but fear I have made a mistake and

> would like to double check my calculation, and then use the equation

> to propagate my errors, as each constant has an associated standard

> error of the mean. Propagation of my error will give me an error on my

> model calculation, which is really important.

> 

> Thanks

> 




  • Prev by Date: Re: Minimizing Mathematica file size for source code control?
  • Next by Date: Re: Re: Mac OS X 10.5 - Mathematica 5.1 hangs - 6.0 works?
  • Previous by thread: Re: Multiple Constants
  • Next by thread: Re: Multiple Constants