452 reputation
28
bio website people.su.se/~peal0658
location Sweden
age 26
visits member for 1 year, 3 months
seen 15 hours ago
stats profile views 60

Graduate student in mathematics. Languages: Java, C, C++, Mathematica, Php, HTML, CSS, LaTeX.

Interests in computer science: Fractals, genetic algorithms and AI programming.


May
8
comment Creating a number station
Oleksandr R. It is more that I enjoy the sound, (and creep out the neighbours) :)
Feb
1
comment How do I make Reduce yield all solutions explicitly?
Allright, Thanks! This is the solution I went for, but it seems a bit hackish. So, I suspected that it might be possible to do it in a more natural way, but apparently not...
Jan
31
comment How do I make Reduce yield all solutions explicitly?
But what if I have more than one linear equation, and/or do not know if the equations are linear?
Dec
13
comment Bug in Integrate for Mathematica
Nice! Only a few more letters...
Oct
28
comment How do we solve Eight Queens variation using primes?
Then this is not aa n-queen problem, but an n-rook problem...
Oct
2
comment How to use mathematica to create school time-table?
Mathematica does not come with genetic algorithms as built-in functions. However, it is rather easy to implement yourself; You need a fitness function (that assigns a number that represents how good a schedule is), and a function for randomly mutate a schedule a bit (switching classes, rooms, etc). Then, start with 100 randomly generated schedules, select the top 10 based on their fitness, and create mutated copies of these until you have 100 again. Repeat until the best schedule is good enough.
Aug
21
comment Building a list recursive with one or more arguments
You don't have q and v?
Aug
17
comment How do I create and use Mathematica packages?
Should there be a ` before Private?
May
9
comment Finding a percolation path
You can also do binary search on the r, reducing the complexity a bit more.
Apr
10
comment How to Map a subset of list elements to a function?
f[#1, #2] & @@@ Partition[{1,2,3}, 2, 1]
Mar
27
comment Bug in Integrate for Mathematica
Well, yes, but the same assumptions are made in both integrals. What surprises me is that factorization of the integrand changes the answer.
Mar
27
comment Bug in Integrate for Mathematica
Ah, but what are the assumptions in this case? I guess the inequalities forces the variables to be real, but the region one integrates over is also a real domain...
Mar
27
comment Bug in Integrate for Mathematica
Yes, I know that NIntegrate manages to get the answer correct. What I am curious about, is why the two identical integrals give different answers, depending on if the integrand is factorized or not.