Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14637

Re: Through[Divide[f1, f2][x]]

From Ray Koopman <koopman@sfu.ca>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Through[Divide[f1, f2][x]]
Date 2013-05-26 08:37 +0000
Message-ID <knshje$c7a$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Through[Divide[f1, f2][x]] Ray Koopman <koopman@sfu.ca> - 2013-05-26 08:37 +0000

csiph-web