Re: Through[Divide[f1, f2][x]]
- To: mathgroup at smc.vnet.net
- Subject: [mg130929] Re: Through[Divide[f1, f2][x]]
- From: Ray Koopman <koopman at sfu.ca>
- Date: Sun, 26 May 2013 05:06:00 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
Either of these will give you f1[x]/f2[x]:
Divide@@{f1@#,f2@#}&@x
Divide@@(#@x&)/@{f1,f2}
Sometimes it would be nice to have a "reverse map", that
applied each of a list of functions to a single argument,
instead of a single function to each of a list of arguments.
----- Andres Guzman <andres.guzman.fernandez at gmail.com> wrote:
> $Version
> 8.0 for Linux x86 (64-bit) (October 10, 2011)
>
> Through[Divide[f1, f2][x]]
> f1[x] (1/f2)[x]
>
> (* When what I want is: Divide[f1[x],f2[x]] . An uncomfortable
> consequence of the way Mathematica treats division.*)
>
> Divide[f1, f2] // FullForm
> Times[f1, Power[f2, -1]]
- Follow-Ups:
- Re: Through[Divide[f1, f2][x]]
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: Through[Divide[f1, f2][x]]
- From: Andrzej Kozlowski <akozlowski@gmail.com>
- Re: Through[Divide[f1, f2][x]]