Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. // lab1.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #define _USE_MATH_DEFINES
  5. #include "stdafx.h"
  6. #include <math.h>
  7.  
  8. float x(int n, double a, int f, float chi, int f8)
  9. {
  10. for (int i = 0; i <= 8000; i++)
  11. {
  12. float in = M_PI * 2 * f *n / f8 + chi;
  13. float x = a * sin(in);
  14.  
  15. return x;
  16.  
  17. }
  18.  
  19.  
  20. }
  21. float y(int n, int x)
  22. {
  23.  
  24. }
  25.  
  26. int main()
  27. {
  28. //1
  29. double a = 0.92;
  30. int f = 19;
  31. float chi = M_PI / 3;
  32. int f8 = 8000;
  33. int t = 1;
  34.  
  35. //2
  36.  
  37.  
  38.  
  39.  
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement