name 'sin' is not defined code example
Example 1: $ is not defined
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
Example 2: NameError: name 'ggt' is not defined
It is quite clear in the error, the variable isn't defined