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


Groups > comp.soft-sys.math.mathematica > #14644 > unrolled thread

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

Started byAndrzej Kozlowski <akozlowski@gmail.com>
First post2013-05-26 08:37 +0000
Last post2013-05-26 08:37 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Through[Divide[f1, f2][x]] Andrzej Kozlowski <akozlowski@gmail.com> - 2013-05-26 08:37 +0000

#14644 — Re: Through[Divide[f1, f2][x]]

FromAndrzej Kozlowski <akozlowski@gmail.com>
Date2013-05-26 08:37 +0000
SubjectRe: Through[Divide[f1, f2][x]]
Message-ID<knshk2$c7c$1@smc.vnet.net>
On 25 May 2013, at 11:38, 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]]
>

One way round this sort of problems is to Block Divide:

Block[{Divide}, Through[Divide[f1, f2][x]]]

f1[x]/f2[x]

Of course this involves extra typing but then if you wanted to save =
yourself typing you could have just typed f1[x]/f2[x].

Andrzej Kozlowski

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web