# Periodic, continuous and piecewise smooth function

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

sin(x) is a continuous smooth piecewise function.

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.
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?