Reputation
8,096
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
8 29
Newest
 Yearling
Impact
~95k people reached

Apr
22
comment Collect distributed sums
No, it is not. It is just a generalization
Apr
22
comment Collect distributed sums
OK, thank you. Please disregard the above comment: there is an error in the code. There is one still elusive feature. The method seems to be also applicable to integrals. Indeed, assume the expression expr = 3*Integrate[g[x], {x, 0, 1}] and the rule: rule = a_.*Integrate[b_.*f_[x], {x, a_: 0, b_}] -> Integrate[a*b*f[x], {x, a, b}] . Its application expr /. rule returns the same expression. So, what is the difference? Could you comment?
Apr
22
comment Collect distributed sums
Hanllon OK, thank you. This approach seems to should work also for integrals, such as expr = 3*Integrate[g[x], {x, 0, 1}] and rule = a_.*Integrate[f_[x], {x, a_: 0, b_}] -> a*Integrate[f[x], {x, a, b}] but it does not. The operation expr /. rule returns the initial expression. Could you please comment on the reason and difference?
Apr
21
comment Collect distributed sums
Yes, Bob, I understand that. I already played with it. My question is more, why it does not match without and matches with that definition?
Apr
21
comment Collect distributed sums
Can you please comment, why do you use the Default pattern (_.) here? What is the idea behind?
Apr
21
comment Collect distributed sums
Can you please comment, why do you use the Default pattern (_.) here? What is the idea behind?
Apr
17
comment DisplayFormula badly rendered if style is set before writing
It is not clear, what is your question. It is since the question staying in the end of your text has a trivial answer: "Yes, you do, all of us do". But may be the real question is how to achieve the DisplayFormula format of your wish?
Apr
16
reviewed Approve About the wrong evaluation of an integral
Apr
16
answered How can I match some parts of an expression?
Apr
15
comment How to “de rationalize” a number?
Or try using the decimal point, like this, for example: 1/2.
Apr
15
answered Is there a way to Collect[] for more than one symbol in Mathematica 10.0?
Apr
15
comment How do I plot a filled cylinder in 3D?
@David G. Stork In my case (Win7, Mma 10.1) the last statement returned an empty plot.
Apr
14
answered Why does Mathematica remove some formatting?
Apr
1
answered Minimizing the largest difference between two functions
Apr
1
comment Minimizing the largest difference between two functions
What about the sign of the difference f[x]-c g[x] ?
Mar
30
comment How to manipulate string parts?
The quotes stay strangely. The fragment "5/2"" does not seem to be correct.
Mar
30
comment Solving a PDE with a spatially piecewise-constant material parameter
Great, thank you. It looks like a solution for any division of the domain into parts.
Mar
30
accepted Solving a PDE with a spatially piecewise-constant material parameter
Mar
30
answered How can I get the inverse of my function?
Mar
27
asked Solving a PDE with a spatially piecewise-constant material parameter