Arduino Due Function Generator

The function generator sketch for Due on Arduino website appears defective since it does not compile. I was able to fix a couple of the errors but not all of them. Has anyone been able to make this sketch functional?

mike1648:
The function generator sketch for Due on Arduino website appears defective since it does not compile. I was able to fix a couple of the errors but not all of them. Has anyone been able to make this sketch functional?

which one?