El documento presenta dos ejemplos de funciones con retorno en C para calcular conceptos de física. El primer ejemplo calcula el tiempo de caída libre mediante una función que devuelve el tiempo en milisegundos. El segundo ejemplo calcula el tiempo de vuelo total, tiempo de subida y altura máxima de un proyectil usando una función que devuelve el tiempo de vuelo en centésimas de segundo. Ambos ejemplos llaman a las funciones en el programa principal e imprimen los resultados.
Today is Pentecost. Who is it that is here in front of you? (Wang Omma.) Jesus Christ and the substantial Holy Spirit, the only Begotten Daughter, Wang Omma, are both here. I am here because of Jesus's hope. Having no recourse but to go to the cross, he promised to return. Christianity began with the apostles, with their resurrection through the Holy Spirit at Pentecost.
Hoy es Pentecostés. ¿Quién es el que está aquí frente a vosotros? (Wang Omma.) Jesucristo y el Espíritu Santo sustancial, la única Hija Unigénita, Wang Omma, están ambos aquí. Estoy aquí por la esperanza de Jesús. No teniendo más remedio que ir a la cruz, prometió regresar. El cristianismo comenzó con los apóstoles, con su resurrección por medio del Espíritu Santo en Pentecostés.
ROMPECABEZAS DE ECUACIONES DE PRIMER GRADO OLIMPIADA DE PARÍS 2024. Por JAVIE...JAVIER SOLIS NOYOLA
El Mtro. JAVIER SOLIS NOYOLA crea y desarrolla el “ROMPECABEZAS DE ECUACIONES DE 1ER. GRADO OLIMPIADA DE PARÍS 2024”. Esta actividad de aprendizaje propone retos de cálculo algebraico mediante ecuaciones de 1er. grado, y viso-espacialidad, lo cual dará la oportunidad de formar un rompecabezas. La intención didáctica de esta actividad de aprendizaje es, promover los pensamientos lógicos (convergente) y creativo (divergente o lateral), mediante modelos mentales de: atención, memoria, imaginación, percepción (Geométrica y conceptual), perspicacia, inferencia, viso-espacialidad. Esta actividad de aprendizaje es de enfoques lúdico y transversal, ya que integra diversas áreas del conocimiento, entre ellas: matemático, artístico, lenguaje, historia, y las neurociencias.
1. 07/26/2015 profesor: E Batista Him 128
EJEMPLO DE FUNCION CON RETORNO APLICADA
A CONCEPTOS DE LA FISICA
PODEMOS CONFECIONAR UNA
FUNCION EN LENGUEAJE DE
PROGRAMACION C, CON
RETORNO, PARA CALCULAR EL
TIEMPO DE CAIDA LIBRE DEL
PROBLEMA ANTERIOR
2. 07/26/2015 profesor: E Batista Him 129
#include <stdio.h>
#include <math.h>
#include <conio.h>
#include <string.h>
fx_caidalibre(float h, float g); /*Declaracion de la funcion*/
//*ejempo de llamado a una funcion: fx_caida libre
main() {
int r;
float g=9.8 ,h, t;
printf ("Universidad Tecnológica de Panamán");
printf ("Facultad de Ingeniería Eléctrica n");
printf("Ingrese el La altura de H:n");
scanf("%f", &h);
r=fx_caidalibre( h,g);
printf("El tiempo de caida es t, main= %.2f n", r/1000.);
printf("Ingrese otra altura de H:n");
scanf("%f", &h);
r=fx_caidalibre( h,g);
printf("El otro tiempo caida es t main= %.2f n", r/1000.);
}
fx_caidalibre(float h, float g) // la función caída libre
{
float tt; /*Declaracion de las variables locales*/
if(h<0) {
printf("La altura en negativa n");
tt=0; }
else {
tt= sqrt(2*h/g);
return tt*1000 ; // convertimos a enteros
}
}
EJEMPLO DE FUNCION CON RETORNO : CAIDA LIBRE EN FISICA
3. 07/26/2015 profesor: E Batista Him 130
RESULTADO DEL PROGRAMA, LLAMANDO A UNA FUNCION CON
RETORNO
4. 07/26/2015 profesor: E Batista Him 131
OTRO EJEMPLO DE FUNCION CON RETORNO APLICADA
A CONCEPTOS DE LA FISICA, EN PROYECTILES
PODEMOS CONFECIONAR UNA
FUNCION EN LENGUEAJE DE
PROGRAMACION C, CON RETORNO,
PARA CALCULAR EL TIEMPO TOTAL
DE VUELO, EL TIEMPO DE SUBIDA Y
LA ALTURA MAXIMA ALCANZADA
5. 07/26/2015 profesor: E Batista Him 132
EJEMPLO DE FUNCION CON RETORNO : PROYECTILES EN FISICA
#include <stdio.h>
#include <math.h>
#include <conio.h>
#include <string.h>
#define PI 3.14159265
fx_proyectil(float vi, float g, float angulo); /*Declaracion de la funcion*/
//*ejempo de llamado a una funcion: fx_proyectil
main() {
float g=9.8,ymax, t_vuelo,t_subida,vi, angulo;
int t_v;
printf ("Universidad Tecnológica de Panamán");
printf ("Facultad de Ingeniería n");
printf("Ingrese la Velocidad inicial vi:n");
scanf("%f", &vi);
printf("Ingrese el angulo en grados :n");
scanf("%f", &angulo);
t_v = fx_proyectil( vi, g, angulo);
t_vuelo= t_v/100.0; // convertimos a decimales
t_subida= t_vuelo/2.0; // formula y = v0* sen(x)*t -1/2gt*t
ymax = vi*sin(angulo/180*PI)*t_subida - (0.5)*g*t_subida*t_subida;
printf("El tiempo de vuelo tv, main= %.2f n", t_vuelo );
printf("El tiempo de subida ts, main= %.2f n", t_subida );
printf("La maxima alura es ymax main= %.2f n", ymax );
return 0;
}
// funcion proyectil
fx_proyectil(float vi, float g, float angulo) {
float tv ;
tv= (2*vi)*sin(angulo/180*PI)/g;
return tv*100 ; // convertimos a enteros
}
6. 07/26/2015 profesor: E Batista Him 133
RESULTADO DEL PROGRAMA, LLAMANDO A UNA FUNCION CON
RETORNO
// funcion proyectil
fx_proyectil(float vi, float g, float
angulo) {
float tv ;
tv= (2*vi)*sin(angulo/180*PI)/g;
return tv*100 ; // convertimos a enteros
}