Volker
Reputation
735
Top tag
Next privilege 1,000 Rep.
 Aug 25 awarded Enlightened Aug 25 awarded Nice Answer Feb 15 awarded Yearling Feb 15 awarded Yearling Nov 20 awarded Nice Answer Nov 18 revised Even Fibonacci numbers ooops, should filter out the uneven Fibonaccis before computing them... Nov 18 answered Even Fibonacci numbers Nov 11 awarded Citizen Patrol Sep 20 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]]]; Sep 9 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. Aug 21 comment How to automatically put the part of a variable name after the first letter in symbolized subscripts? @Ouistiti See my edit Aug 21 revised How to automatically put the part of a variable name after the first letter in symbolized subscripts? added 493 characters in body Aug 21 answered How to automatically put the part of a variable name after the first letter in symbolized subscripts? Aug 20 revised How to do computations simultaneously in multiple notebooks? deleted 99 characters in body Aug 20 comment How to do computations simultaneously in multiple notebooks? Absolutely right, I'll fix it Aug 20 answered How to do computations simultaneously in multiple notebooks? Aug 19 answered Mathematica not plotting whole logarithmic function Aug 19 awarded Commentator Aug 19 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. Aug 19 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}}]