MathGroup Archive 2007

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

Search the Archive

Applying a list of functions to a single number


Applying a list of functions to a single number
=================================

I have

Square[x_]:=x^2
Cube[x_]:=x^3

I have tried

In[2]:={Square,Cube} @ 5

Out[2]:= {Square,Cube}[5]

But what I wanted is a list containing

 {25,125}

Obviously I'm doing this the wrong way. What is the correct way?



  • Prev by Date: Re: Definite Integration in Mathematica 2
  • Next by Date: Re:Re: Normal for Limit
  • Previous by thread: Re: Re: Definite Integration in Mathematica 2
  • Next by thread: Re: Applying a list of functions to a single number