Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum > General > > "Defining variables"

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:5+3 =



Original Message (ID '104253') By Michael:
Here's my guess at what you mean: PowerDensity[antenna_, loc_] := Module[(a,b,c,x,y}, (* decl. variables *) {a,b,c}=antenna; (* set a,b,c to components of antenna *) {x, y}=loc; (* set x,y to components of loc *) c/(4*Pi*((a x)^2 + (b y)^2)^(1/2)) (* the return value *) ]; PowerDensity[{1000, 1000, 12}, {0, 0}]