Re: Multiple Constants
- To: mathgroup at smc.vnet.net
- Subject: [mg83270] Re: Multiple Constants
- From: Bill Rowe <readnewsciv at sbcglobal.net>
- Date: Fri, 16 Nov 2007 05:37:26 -0500 (EST)
On 11/15/07 at 5:37 AM, 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.
So, give SetAttributes only 2 arguments as it wants. You can
achieve the desired result with only one line of code with either
SetAttributes[{a,b,c}, Constant]
or
SetAttributes[#,Constant]&/@{a,b,c}
In either case, SetAttributes will only see two arguments.
--
To reply via email subtract one hundred and four