Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Two related question. Question 1

  • To: mathgroup at smc.vnet.net
  • Subject: [mg57520] Re: Two related question. Question 1
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 31 May 2005 04:59:17 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <d7dp2r$qam$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

f = #1 + #2 &;

c=f /. Function[body_] :> Function[(body)^2]

??

Regards

  Jens

"Kazimir" <kazimir04 at yahoo.co.uk> schrieb im 
Newsbeitrag news:d7dp2r$qam$1 at smc.vnet.net...
>I have two related question. Let me introduce a 
>pure function
>
> f = #1^2 + #2 &
>
> Now. I want to make an operation over the 
> function, for example to
> find its square and to call the result (the 
> expected function f = (#1^2
> + #2)^2 & ) c:
>
> c=f^2
>
> However, I do not obtain this, as
>
> c[a,b]
>
> does not evaluate to (a+b)^2. Can anybody advise 
> me how to obtain
> such a function without long substitutions. I 
> would like to obtain
> something which is made for derivatives :
>
> In[11]:=
> Derivative[1][f]
>
> Out[11]=
> 2 #1&
>
> In[12]:=
> Derivative[2][f]
>
> Out[12]=
> 2&
>
> Regards
>
> Vlad
> 



  • Prev by Date: Re: Two related question. Question 1
  • Next by Date: exporting front end
  • Previous by thread: Re: Two related question. Question 1
  • Next by thread: Re: Two related question. Question 1