plot sinx and cosx between 0 and pi