11,289 reputation
12355
bio website
location
age 28
visits member for 2 years, 5 months
seen 2 days ago

Jan
25
revised Why is Mathematica's expansion of expressions with square roots so slow?
added 285 characters in body
Jan
25
revised Why is Mathematica's expansion of expressions with square roots so slow?
added 397 characters in body
Jan
25
answered Why is Mathematica's expansion of expressions with square roots so slow?
Jan
25
revised What are the most common pitfalls awaiting new users?
loops are plentyfold in Mathematica, and should not be avoided, it's the procedual side-effect geared loops that should be avoided.
Jan
24
comment Bit Operations — Force Binary Bit Representation
@Stefan "...turns ones into zeros.." is never falsified, and it does provide a 1's complement as is shown in Szabolcs example 0101->1010. What would you expect 0101 to be turned into? I think you're confusion is with what those steams of bits are interpreted as when you convert them back into numbers. Did you look at the wiki page both me and Szabolcs linked to?
Jan
24
comment Can my color function be written more simply?
@Mr.Wizard Feel free to add it here if you'd like.
Jan
24
comment Can my color function be written more simply?
@Mr.Wizard Indeed, you could do that, but strictly speaking it wouldn't be the same, since the current implementation allows you to change the colors at any point while the faster version would have you redefine the function to change colors. For a fun illustration of the difference, try using ColorFunction -> ((colors = RotateRight@colors; cf[##]) &). :)
Jan
24
revised Can my color function be written more simply?
added 19 characters in body
Jan
24
awarded  Nice Answer
Jan
24
answered Array of functions, evaluation in plot
Jan
24
answered How can we create Randolph diagrams in Mathematica?
Jan
23
answered Can my color function be written more simply?
Jan
23
comment How to start simulating physical problems?
I suggest starting by just coding a static visual on whatever you want to do, and then start from there. For instance, you could use VectorPlot to make a static plot of the gravitational field of the two starts you mention. Then upload your code along with a specific question of how to do one thing with it (for instance how to make the stars rotate or similar).
Jan
23
comment Assign the output of a loop
@Darwin I'm not sure what you mean with manually. Normally if you are doing something where you only care about the sowed elements, you use code//Reap//Last.
Jan
23
answered Assign the output of a loop
Jan
22
comment Thick polygons in Graphics3D
@Silvia The only reason it didnt' before was because Plot3D returns a result using GraphicsComplex, and because the polygons have normals. I've updated with a small change in the pattern so it'll ignore normal and a small example of how to use output form Plot3D.
Jan
22
revised Thick polygons in Graphics3D
added 551 characters in body
Jan
22
comment balanced Shortest[] and string-patterns
@andre I would expect it's a case of how the regular expression is implimented. To get some feeling for it here's a video of converting regular expressions into finite state automaton. The thing is that deteting when you reach a single token is different from keeping a seperate memory of which tokens you have been through and detecting whether they make up a specific series.
Jan
22
comment Rounding values
When you input a number like 0.1 Mathematica will carry out computation using a floating point approximation to the number, this is done in order to gain speed at the sacrifice of accuracy. If you desire exact numbers you can use rationals: 1-99/100-1/100 => 0. Or you can simply account for approximation errors as b.gate suggest
Jan
22
answered Thick polygons in Graphics3D