Reputation
1,481
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 21
Newest
 Yearling
Impact
~16k people reached

Mar
19
comment Can Mathematica show me a fraction with a repeating decimal notation?
Also, it appears unevaluated for integers, although it would work normally for them. To fix this, you can change x_Rational to x_?(Head@# == Rational || IntegerQ[#] &).
Mar
19
comment Can Mathematica show me a fraction with a repeating decimal notation?
Your function can be easily generalized to print in arbitrary base $b\le36$: just add a second argument to RealDigits.
Mar
19
comment Can Mathematica show me a fraction with a repeating decimal notation?
Your function gives strange results for 1234/9999*10^-4: instead of $0.0000\overline{1234}_4$ it says $\overline{12}.\overline{34}_4$.
Mar
1
comment Why doesn't FullSimplify find simpler expression given a set of transformation rules?
Does FullSimplify require that ComplexityFunction monotonically decreases on each transformation?
Mar
1
comment Why doesn't FullSimplify find simpler expression given a set of transformation rules?
The problem here is that this way some transformations will be applied unconditionally, even without Simplify. And in your use of Simplify the assumption is not even used — it works without it (it's in fact unneeded at all, since nothing will change if x==0||y==0).
Feb
29
asked Why doesn't FullSimplify find simpler expression given a set of transformation rules?
Feb
21
comment Define a mathematical set
At least in Mathematica 9, Solve[ Sin[x] == 1/2, x] gives {{x -> ConditionalExpression[π/6 + 2 π C[1], C[1] ∈ Integers]}, {x -> ConditionalExpression[(5 π)/6 + 2 π C[1], C[1] ∈ Integers]}}.
Feb
14
comment Is there an inverse function for F[x] = {Cos[x], Sin[x]} in Mathematica?
How is this different from ArcTan[#1,#2]&[a,b]?
Feb
14
asked How to prevent extraction of constants from radical sign?
Feb
14
comment How to disable the small pop-up windows when mouse is over a Mathematica command in V10?
@JeffDror it is there between autocompletion and natural language detection options on my MMA 10.1 on Linux.
Feb
13
asked What function can transform A*Cos[x]+B*Sin[x] to Q*Sin[x+R] form?
Feb
7
comment How well does Mathematica code exported to C compare to code directly written for C?
The function name looks like invalid C. Modern Mathematica versions don't seem to produce such invalid code.
Jan
31
revised How to plot points in 2D without restricting their apparent positions to pixel grid?
added 131 characters in body
Jan
31
comment How to plot points in 2D without restricting their apparent positions to pixel grid?
@Nasser of course you don't see any difference if you enlarge the points — see my parenthesized part of the first sentence. I wasn't talking about logical positions — my question is about rasterization, which does yield different results. To see the difference, use a screen magnifier (e.g. Qt's pixeltool) on my animation. As for function definition, why should it be a delayed assignment (I guess you mean := not =:)? It doesn't make any real difference here, and in general it isn't useful to completely reevaluate an expression for each argument unless the expression is not idempotent.
Jan
31
asked How to plot points in 2D without restricting their apparent positions to pixel grid?
Dec
29
awarded  Yearling
Dec
11
accepted Why does Mathematica simplify $x/x\to1$?
Nov
29
revised How to improve performance of BesselJ to the level of GSL?
C source vanished from Mozilla's pastebin, removing the broken link
Nov
20
comment FullSimplify does not distribute Abs over multiplication
FWIW, FullSimplify[FunctionExpand[Abs[x y]^2], {x, y} ∈ Reals] does yield x^2y^2.
Nov
19
awarded  Good Question