fun.curve function

Calculate curve