# Periodic, continuous and piecewise smooth function

1. Aug 12, 2009

### fractional

Dear friends,

I am a new member of physics forums, so this is may new message.
Already thanks to you for your helps to my question. I research some
applied mathematician problem's numerical solutions. There are initial-boundary value problems. I need an initial condition function which must be a periodic, continuous and

ocean

2. Aug 13, 2009

### CaffeineJunky

sin(x) is a continuous smooth piecewise function.

3. Aug 14, 2009

### fractional

thanks for your suggestion, but I apply sin(x) to my problem, I need any other one to compare my numerical matlab simulation results. ıf you give me any other function, I can use for comparison.

4. Aug 14, 2009

### HallsofIvy

Cos(x) works.

You just want some continuous, periodic, piecewise function? Okay, what about f(x)= x if $0\le x\le 1$, 2- x if $1\le x\le 2$ and continued periodically with period 1?

My question is, do you really understand what "continous, periodic, piecewise function" means? If you do, then it should be easy to make up hundreds of examples.