diff --git a/ahhfunkcje.h b/ahhfunkcje.h new file mode 100644 index 0000000000000000000000000000000000000000..0606e25445a077e031cf01ae9d83aaff4b306659 --- /dev/null +++ b/ahhfunkcje.h @@ -0,0 +1,25 @@ +#include<stdio.h> +#include<math.h> +#ifndef ahhfunkcje_H_ +#define ahhfunkcje_H_ + +#define G 0.00000000006674; + +float check(float M, float R){ +if(M>=0 && R>=0){ + printf("dane poprawne\n");} +else { + printf("dane niepoprawne\n");} +} + + +float velocity(float M, float R){ + float V; + float Vp; + Vp = (2*M/R)*G; + V = sqrt(Vp); + printf("predkosc ucieczki to %f\n", V); +} + + +#endif