Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- float fG = 9.81; // Ëóíà = 1.62
- float how_Time (float fH);
- float how_Speed (float fT);
- float ret_Radian(float f_grad);
- /////////////////////////////////////////////////
- int main()
- {
- float fH = 100,
- fT = how_Time (fH),
- fV = how_Speed(fT),
- fRad = ret_Radian(60);
- printf("fall_of_time = %.2f\n", fT);
- printf("Fall speed = %.2f\n", fV);
- printf("Radian = %.2f\n", fRad);
- printf("sinus 60 = %.2f\n", sin(fRad)) ;
- }
- ///////////////////////////////////////////////// sqrt( sqrt2*H/g)
- float how_Speed(float fT)
- {
- float fV = fT * fG;
- return fV;
- }
- ///////////////////////////////////////////////// sqrt( sqrt2*H/g)
- float how_Time(float fH)
- {
- float ft = sqrt(2*fH/fG);
- return ft;
- }
- //////////////////////////////////////////////////
- float ret_Radian(float f_grad)
- {
- return (f_grad * 3.14) / 180;
- }
- /*
- #include <stdio.h>
- const int nSize = 7;
- int array[100]= {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
- void vold(int *p, int);
- /////////////////////////////////////////////////
- int main()
- {
- printf(" array= ");
- vold(array, nSize);
- for(int i=0; i < nSize; i++)
- {
- printf(" %d ", array[i]);
- }
- }
- /////////////////////////////////////////////////
- void vold(int *p, int n)
- {
- int m;
- n = n - 1;
- for(int i=0; i<(n/2); i++)
- {
- m = p[ i];
- p[ i] = p[n-i];
- p[n-i] = m;
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement