2014-06-29 06:56:34 +0200 | received badge | ● Notable Question (source) |
2014-06-29 06:56:34 +0200 | received badge | ● Famous Question (source) |
2014-02-04 18:54:40 +0200 | received badge | ● Popular Question (source) |
2013-01-22 18:59:38 +0200 | received badge | ● Scholar (source) |
2013-01-22 18:59:38 +0200 | marked best answer | Plotting a recursive function First, your indentation is messed up, but that's probably just a formatting problem in your question. The real issue is that when If you replace the expression |
2013-01-22 18:59:24 +0200 | commented answer | Plotting a recursive function I also fixed the indentation. |
2013-01-22 18:56:27 +0200 | commented answer | Plotting a recursive function Thank you! This is exactly what I was trying to do. |
2013-01-22 01:11:45 +0200 | received badge | ● Supporter (source) |
2013-01-22 01:09:43 +0200 | received badge | ● Editor (source) |
2013-01-22 01:07:02 +0200 | asked a question | Plotting a recursive function I'm trying to plot different iterations of the Cantor function using the iterative definition: Let 0(x) = x. Then, Let n+1(x) = 1/2*n(3x), when 0 <= x < 1/3; Let n+1(x) = 1/2, when 1/3 <= x < 2/3; Let n+1(x) = 1/2 + 1/2*n(3x - 2), when 2/3 <= x <= 1. I extended it to be 0 when x<0 and 1 when x>1. The function I have defined returns the correct values for a specific iteration and a specific x, but it is not plotting how I would like it to. When I plot it, I just get a horizontal line at 1. Thanks in advance for any help. |