Skip to main content
Tweeted twitter.com/#!/StackMma/status/352700855239180288
added 12 characters in body; edited tags
Source Link
Kuba
  • 137.7k
  • 13
  • 289
  • 751

Suppose we're given the expression f*g+hf*g+h, where f,g,hf,g,h are all pure functions. How can we evaluate this expression on some xx? If there were only one operation, say f+gf+g, we could simply use Through[(f+g)[x]]Through[(f+g)[x]], but ThroughThrough only deals with one operation, as far as I can see. How is this done?

Suppose we're given the expression f*g+h, where f,g,h are all pure functions. How can we evaluate this expression on some x? If there were only one operation, say f+g, we could simply use Through[(f+g)[x]], but Through only deals with one operation, as far as I can see. How is this done?

Suppose we're given the expression f*g+h, where f,g,h are all pure functions. How can we evaluate this expression on some x? If there were only one operation, say f+g, we could simply use Through[(f+g)[x]], but Through only deals with one operation, as far as I can see. How is this done?

Source Link

Using Through to evaluate complex expressions

Suppose we're given the expression f*g+h, where f,g,h are all pure functions. How can we evaluate this expression on some x? If there were only one operation, say f+g, we could simply use Through[(f+g)[x]], but Through only deals with one operation, as far as I can see. How is this done?