Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Defining variables' topicStudent Support Forum > General > Archives > "Defining variables"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Michael
11/03/12 12:37pm

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}]


URL: ,

Subject (listing for 'Defining variables')
Author Date Posted
Defining variables Micahel 10/24/12 10:26pm
Re: Defining variables Michael 11/03/12 12:37pm
< Previous CommentHelp | Reply To Comment | Reply To Topic