From 8a66da9703440f6f303674289cee19705a3aa7a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Warenycia?= <s199426@student.pg.edu.pl> Date: Tue, 1 Apr 2025 16:17:16 +0000 Subject: [PATCH] Upload New File --- ahhfunkcje.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ahhfunkcje.h diff --git a/ahhfunkcje.h b/ahhfunkcje.h new file mode 100644 index 0000000..0606e25 --- /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 -- GitLab