Prepare polynomial calc