MathGroup Archive 2005

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

Search the Archive

Re: Defining functions using the output of an other function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg59621] Re: [mg59596] Defining functions using the output of an other function
  • From: "benshimo at bgumail.bgu.ac.il" <bsyehuda at gmail.com>
  • Date: Sun, 14 Aug 2005 04:38:08 -0400 (EDT)
  • References: <200508130726.DAA00924@smc.vnet.net>
  • Reply-to: benshimo at bgumail.bgu.ac.il
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
Ofcourse you can, this is one of the strongest properties of functional
programming, after all.
If a function returns a list and the input of the second function is a list
(or any atom expression in general), there is no problem.
However, Solve returns a list of repacement rules and you need to make some
modification to get the correct form that D expects
yehuda

On 8/13/05, Eckhard Schlemm <e.schlemm at t-online.de> wrote:
>
> Hi
>
> Is there any possibility in mathematica to define a function using te
> output
> of another function such as D[] oder Solve[] ?
>
> for ex.
>
> r[t_]::=Solve[y=x^2,y,x];
>
> That actually does not work, just in order to illustrate what i am talking
> about^^
>
> Thanks a lot
>
> Eckhard
>
>
>



  • Prev by Date: Re: Defining functions using the output of an other function
  • Next by Date: Re: Defining functions using the output of an other function
  • Previous by thread: Defining functions using the output of an other function
  • Next by thread: Re: Defining functions using the output of an other function