The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Through[Divide[f1, f2][x]]
Replies: 2   Last Post: May 26, 2013 4:38 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Andrzej Kozlowski

Posts: 226
Registered: 1/29/05
Re: Through[Divide[f1, f2][x]]
Posted: May 26, 2013 4:38 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 25 May 2013, at 11:38, Andres Guzman =
<> 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]]]


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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.