Re: Controlling function arguments
- To: mathgroup at smc.vnet.net
- Subject: [mg48831] Re: [mg48817] Controlling function arguments
- From: Daohua Song <ds2081 at columbia.edu>
- Date: Fri, 18 Jun 2004 02:12:57 -0400 (EDT)
- References: <200406170807.EAA27782@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
HI,
Because x is a list,so And@@ is applied to every member of x to make
sure every elment is number.
Daohua
On Thu, 17 Jun 2004, Virgil Stokes wrote:
> I found the following Mathematica code:
>
> NumberVectorQ[x_] := VectorQ[x] && And @@ NumberQ /@ x;
> functionx[k_Integer?Positive, v_?NumberVectorQ, w_?NumberVectorQ,
> q_?NumberVectorQ] := .....
>
> where, I have left out the body of this function (functionx). What does
> the first line actually accomplish?
>
> --V. Stokes
>
>
>
>
- References:
- Controlling function arguments
- From: Virgil Stokes <Virgil.Stokes@it.uu.se>
- Controlling function arguments