1,522 reputation
733
bio website
location
age 29
visits member for 2 years
seen 2 hours ago

As time goes on, I grow more disillusioned with quantum field theory.


2h
comment Recognizing special cases of a defined function for permuted arguments
Thanks for the notification; you can go ahead and include the solution your answer. Then I'll mark it as accepted.
Aug
19
comment How do I speed up a plotting of NIntegrate when repeated multiple times inside Plot?
Yes, I just now figured out how it works (I had never heard of ParametricNDSolveValue before now). Thanks!
Aug
19
comment How do I speed up a plotting of NIntegrate when repeated multiple times inside Plot?
This is very nice! That I have to pick an upper limit of x is no problem. I also have two cases (in the list) where the upper limit of the integral looks like (1-x)^2. Would that case also work with NDSolveValue or ParametricNDSolveValue?
Aug
17
comment Store matched variables
yes f[g[x]] that should match.
Aug
17
comment Store matched variables
Sow? Reap? So we're farmers now?! Nice solution. I'll wait for more answers/comments before accepting this one
Aug
17
comment Store matched variables
f[] and f[x,y] do not match.
Aug
17
comment Store matched variables
Does this give the replaced expr as output? I should have said that outputting the replaced expr is needed, and I also need to store the variables on the side.
Aug
8
comment Quartic equation
I ran into similar issues; basically, you have two choices: 1. Compute the various cases by hand, and hard-program the correct values using Piecewise, or 2. Insert I*e into the square-root expression appropriately, and take the Limit as e->0. Mathematica will give a complicated answer but should result in correctly chosen branches.
Aug
6
comment User-defined template; removing repeated text (v 9.0.1)
Thanks for your answer (from 1.5 years ago). Do you know if the situation is any different in v10?
Jul
26
comment How to avoid nested With[]?
Out of curiosity, why did you call it "LetL" ?
Jul
24
comment Recognizing special cases of a defined function for permuted arguments
This is better, but the invariance of the function $f$ isn't for permutations of first three arguments $a,b,c$ independent of the second three $x,y,z$. They are tied together. But no problem; your answer and @BobHanlon's answer pointed me in the right direction: I could declare SetAttributes[f1, Orderless] but with the arguments arranged f1[{a_,x_},{b_,y_},{c_,z_}], and make the library of special cases for f1. Then finally, I put f[a_,b_,c_,d_,e_,f_] = f1[{a,x},{b,y},{c,z}]. I tried a few cases and it seems to work. What do you think?
Jul
24
comment Recognizing special cases of a defined function for permuted arguments
This won't work because $f$ isn't completely orderless among all six variables.
Jul
10
comment Define PolyLog so that positive reals evaluate on upper edge of branch cut
@Öskå These won't do; I need to be able to use this analytically too. See the edit.
Feb
5
comment Optimizing my code to generate symmetric tensors
No that will not be necessary. But thanks for offering!
Feb
5
comment Optimizing my code to generate symmetric tensors
This is fantastic! Thank you for fixing my code, and making it go faster. Many thanks!
Feb
5
comment Optimizing my code to generate symmetric tensors
Yes actually, your answer works wonderfully. I should have commented.
Jan
29
comment Checking through an expression
Very nice. In the right hand side, would it still work if I replaced Union @ allowedList with just allowedList?
Jan
24
comment Extracting argument sequences from function expressions
Yeah, I thought it was that too. But it turned out not to be.
Oct
29
comment How do I put my packages into Dropbox
@Peltio Please put your response as an answer so I can accept it. (Please add a few words about making changes to $Path permanent).
Oct
29
comment How do I put my packages into Dropbox
Ok, the answer to my second question is here: mathematica.stackexchange.com/questions/1874/…