Skip to content

Instantly share code, notes, and snippets.

@vinutah
Created November 7, 2015 16:43
Show Gist options
  • Save vinutah/fae33d7c7152bbc7a66c to your computer and use it in GitHub Desktop.
Save vinutah/fae33d7c7152bbc7a66c to your computer and use it in GitHub Desktop.
sine inputs and functions
if (strcmp(initialCond,"sin")==0){
for ( j = 0; j < x_num; j++ ){
h[j] = ampl * sin ((3.14 * freq * j ) / x_num) ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment