Volker
Reputation
660
Top tag
Next privilege 1,000 Rep.
See vote count; VIP usercard
3 10
Impact
~15k people reached

• 0 posts edited

# 50 Actions

 Feb15 awarded Yearling Mar28 comment Fastest way to create a NxNxNxN dimensional matrix Why do you need to store the table in memory? If it's just a simple multiplication of two complex numbers to get one particular element, you could just compute it every time it's needed. Might even be faster than looking up an element in a structure with 500 million elements. Feb15 awarded Yearling Nov20 awarded Nice Answer Nov18 revised Even Fibonacci numbers ooops, should filter out the uneven Fibonaccis before computing them... Nov18 answered Even Fibonacci numbers Nov11 awarded Citizen Patrol Sep20 comment How to plot periodic function's graphic? Your syntax is off. Functions in Mathematica are defined by patterns, so it needs to be f[t_] on the left hand side. Also, I don't know why you expect Mathematica to understand f[t+10]=f[t] properly. It works if you define it like this: f[t_] := If[-5 <= t <= 5, t, If[t > 0, f[t - 10], f[t + 10]]]; Sep9 comment Print indexed (by subscript) variable name systematically You should use Do[..., {g, 3}] instead of For[g = 1, g < 4, g++, ...];. It's idiomatic, easier to read and maintain, and possibly faster. Or Map, if possible, or some other construct. Aug21 comment How to automatically put the part of a variable name after the first letter in symbolized subscripts? @Ouistiti See my edit Aug21 revised How to automatically put the part of a variable name after the first letter in symbolized subscripts? added 493 characters in body Aug21 answered How to automatically put the part of a variable name after the first letter in symbolized subscripts? Aug20 revised How to do computations simultaneously in multiple notebooks? deleted 99 characters in body Aug20 comment How to do computations simultaneously in multiple notebooks? Absolutely right, I'll fix it Aug20 answered How to do computations simultaneously in multiple notebooks? Aug19 answered Mathematica not plotting whole logarithmic function Aug19 awarded Commentator Aug19 comment Mathematica not plotting whole logarithmic function Actually, the problem is still there when you put in larger numbers... but it's a little better. At that point I'd probably draw in a straight line manually, extending the curve. Check out the Graphics and Line commands. Aug19 comment Mathematica not plotting whole logarithmic function It's a problem of how Plot[] works. There is only one pixel per x-value, and the curve at x=-1 is so steep that it doesn't take up more than one pixel in width. Use this instead: ParametricPlot[{x, Log[x + 1]}, {x, -1, 3}, PlotRange -> {{-2, 3}, {-10, 2}}] Aug19 answered Creating overlapped block matrices