1,616 reputation
836
bio website
location
age 29
visits member for 2 years, 1 month
seen yesterday

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


Sep
13
comment How to make a new analytic function work seamlessly with Mathematica's analysis functions?
Thanks; it's working, but seems backwards that I get Series if I have Derivative, and Limit if I have Series. What are the benefits of giving attribute NumericFunction? It seems bit superficial to me.
Sep
11
comment How to assign up-values for `Derivative`?
Very nice! What I'm really trying to do is to define a function that works as seamlessly as possible with Mathematica's analytic functions like Integrate Limit Series etc.. do you know of a simple way to do this? Should I ask it as a separate question?
Sep
3
comment Recognizing special cases of a defined function for permuted arguments
Nice answer! and kudos to you for making the RHS consistent. I like especially how it generates the necessary definitions.
Sep
1
comment Recognizing special cases of a defined function for permuted arguments
@Mr.Wizard Your corrected answer is working very nicely. I will wait for further answers/comments.
Sep
1
comment Recognizing special cases of a defined function for permuted arguments
@MichaelE2 thanks for the response, I'm not entirely sure how this works and how to use it. Exactly where do I insert this line? Maybe you can explain in an answer?
Sep
1
comment Recognizing special cases of a defined function for permuted arguments
It appears that I have certain cases where an explicit form is not known and thus no pattern matches. In that case, the function call to f[a,b,c,x,y,z] would return f1[{a,x},{b,y},{c,z}]. I'd like it to return f instead of f1 which is supposed to be an internal function. Do you know how this can be accomplished without resulting in an infinite loop?
Aug
26
comment Saving a notebook as PDF, preserving syntax highlighting
I got this working by setting the PrintStyleEnvironment to "Working" but now the fonts are far too large. How do I make it smaller?
Aug
24
comment Prevent iterator name from being confused with symbol passed into function body
Thanks! Where can I find more information on when I must use the 'Return' function?
Aug
23
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.