Está en la página 1de 3

TECNOLOGICO NACIONAL DE MEXICO

CAMPUS VILLAHERMOSA

Ing. Química

METODOS NUMERICOS

Unidad 1 – Tarea 4:

DETERMINAR LA VELOCIDAD

DE UN PARACAIDISTA

Presenta:

Cruz Hernández Mauricio, 6to semestre

Docente:

Dr: Mauricio Arturo Reyes

Villahermosa, Tabasco, México, 28 de Septiembre del 2021


VELOCIDAD DE CAIDA act-4

#include <iostream>
#include <math.h>
using namespace std;
int main() {
cout<<"Actividad 4";
cout<<"\nPrograma para determinar la velocidad de un paracaista desde un tiempo inicial hasta
uno final";
int t1;
int t2;
float cr;
float mp;
cout<<"\nIngrese el tiempo inicial: ";
cin>> t1;
cout<<"\nIngrese el tiempo final: ";
cin>>t2;
cout<<"\nIngrese la masa del paracaisdista: ";
cin>>mp;
cout<<"\nIngrese el coeficiente de resistencia del aire: ";
cin>>cr;
cout<<"T,s V, m/s\n";
for(int i = t1; i<t2+1; i=i+1){
double expfinal=exp(-(cr/mp)*i);
double v=(9.81*mp/cr)*(1-expfinal);
cout<<i;
cout<<" " << v << "\n";
}
return 0;
}

También podría gustarte