All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Super-smooth hump (Posted on 2006-10-24)

You want to modify the functions fn(x)=xn (n = 1, 2, 3, ...) in the following way: Outside the interval [-1,1] the functions should remain completely unchanged. At zero, the new functions should be 1 (instead of 0). And the most important requirement: The functions should remain continuously differentiable infinitely many times, everywhere.

You can achieve this by adding a "hump" function to fn. But not any function will do: For instance, you cannot add a Gaussian exp(-x2), because that would change fn outside the interval [-1,1]. You also cannot add a sine hump, (0.5 + 0.5*sin(π x)) for x in [-1,1] and 0 otherwise, because the second derivative would become discontinuous at -1 and 1. Find a hump function which will do the trick.

 No Solution Yet Submitted by vswitchs Rating: 4.3333 (3 votes)

 Subject Author Date re(2): Entirely different solution JLo 2006-10-31 12:33:07 re: Entirely different solution Richard 2006-10-31 11:39:19 Entirely different solution JLo 2006-10-31 08:06:22 re(2): My Way Richard 2006-10-25 23:54:37 re: My Way Tristan 2006-10-25 21:06:24 My Way Richard 2006-10-25 19:29:38 re(2): Solution Tristan 2006-10-24 23:00:01 re: Solution Richard 2006-10-24 18:28:32 Solution Tristan 2006-10-24 17:38:50

 Search: Search body:
Forums (0)