711 reputation
314
bio website
location
age
visits member for 2 years, 6 months
seen Jul 13 at 18:26

Jul
2
awarded  Curious
Apr
28
awarded  Nice Question
Jan
26
awarded  Yearling
Dec
1
awarded  Necromancer
Nov
21
awarded  Popular Question
Jan
28
accepted Why doesn't FullSimplify get rid of the common factor in this expression?
Jan
28
comment Why doesn't FullSimplify get rid of the common factor in this expression?
All these suggestions work. I'm not sure how to judge this, but the one involving Cancel seems like the most direct. As for an explanation for this strange behavior, I guess I shouldn't hold my breath. @PinguinDirk - do you want to turn your comment into an answer so I can accept it?
Jan
27
asked Why doesn't FullSimplify get rid of the common factor in this expression?
Jan
26
awarded  Yearling
Dec
7
awarded  Nice Question
Nov
15
comment An elegant way to plot a numeric function that returns a list, and have each element in a different color
By using ListPlot you're not taking advantage of the adaptive sampling algorithm of Plot.
Nov
15
awarded  Critic
Nov
15
accepted An elegant way to plot a numeric function that returns a list, and have each element in a different color
Nov
15
comment Plotting the components of a function that returns a list in different colors without redundant evaluations of the function
Another related SO question: "Telling Plot to style vector-valued black-box functions in Mathematica"
Nov
15
comment An elegant way to plot a numeric function that returns a list, and have each element in a different color
@Sasha - in the question you linked to the problem is to avoid redundant evaluations of the function, since it is expensive to evaluate (just like in this question, which is already mentioned above). In my question I don't mind redundant evaluations, my problem is coding style. These are two different issues.
Nov
14
asked An elegant way to plot a numeric function that returns a list, and have each element in a different color
Oct
31
accepted Why doesn't Mathematica simplify a square root of an expression that equals a square of a positive real?
Oct
31
comment Why doesn't Mathematica simplify a square root of an expression that equals a square of a positive real?
Great idea! It can be a bit simplified by using just one replacement rule: x_^2 + 2 y_^2 + 2 y_ Sqrt[x_^2 + y_^2] -> (Sqrt[x^2 + y^2] + y)^2.
Oct
31
comment Why doesn't Mathematica simplify a square root of an expression that equals a square of a positive real?
Nice! Then I just add /.{r -> Sqrt[x^2 + y^2], t -> ArcTan[x, y]} and simplify again and I have the simplified expression in my original variables. On the other hand, I have this expression appearing multiple times with different variables instead of x and y, and I'm not sure if your approach can be generalized to such a case.
Oct
25
accepted Is Abs[z]^2 a bad way to calculate the square modulus of z?