MathGroup Archive 2004

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

Search the Archive

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


  • Prev by Date: Simplifying a large matrix into an equation using Mathematica
  • Next by Date: Re: Question about Hold
  • Previous by thread: Controlling function arguments
  • Next by thread: Re: Controlling function arguments