02/25/2018 profesor: Mgtr E Batista Him 1
APLICACIONES UTILIZANDO VISUAL ESTUDIO PARA LOS
SIGUIENTES CALCULOS, EL CONCEPTO DE LA INTEGRAL DEFINIDA
POR EL METODO DE RECTANGULOS PROYECTO NO.__
USANDO LA HERRAMIENTA DE ORACLE 11G BLOQUES
ANONIMOS
CALDUOS DE AREAS ENTRE DOS CURVAS
CALCULOS DE VOLUMEN ENTRE DOS CURVAS
CALCULO DE VOLUMEN SI GIRA SOBR EL EJE X O EJE Y
LONGITUD DE CUERDA
CENTROS DE MASA
RECORDERIS DE CALCULO I, II DE LAS INTEGRALES DEFINIDAS
UTILIZAR LOS BLOQUES ANONIMOS DE ORACLE 11G
#include <stdio.h>
#include <conio.h>
// b= limite superior a = limite inferior
float x,y,z,F_area;
int a=1,b=5,c=12,n; // c= cantidad de ciclos x aproximados
float h;
main () {
h=(b-a);
h= h/c; // cantidad de particiones aproximado
n=0;
printf("==============================tn");
printf("x ty tn");
printf("==============================tn");
while(n<c+1)
{
if(n==0) { x=a+(h/2); }
y=x*x; // ecuacion a integrar,--- cambiar aqui
x=x+h; // x mas el incremento dx
z=z+y; //
if(n=c-1) { F_area =z*h; } -- ?
n=n+1;
printf("x=%f ty=%ftn",x,y);
}
printf("la integral del area=%fn",F_area); //Este es el resultado final.
//getch();
return(0); }
CONVERTIR SU CODIGO DE LENGUAJE C++ EN CODIGO DE SQL DE ORACLE
USANDO EL IF THEN, WHILE LOOP, DECLARE, BEGIN, Y LA IMPRESIÓN
DBMS_OUTPUT.PUT_LINE, LA INSTRUCCIÓN LPAD PARA LA IMPRESION
Calcular de forma manual la función a
integrar y la compara con el método
calculado en Oracle 11g como bloque
anónimo
Utilice los limites inferior a=0,
superior b=2 y cantidad ciclos=8
E integra la función siguiente
02/25/2018 2profesor: Mgtr E Batista Him
02/25/2018 profesor: Mgtr E Batista Him 3
APLICACIONES: CALCULO DE AREAS, VOLUMEN, LONGITUD UTILIZANDO EL METODO DE
INTEGRACION POR MEDIO DE RECTANGULOS, EN VISUAL ESTUDIO NET PROYECTO ,
O EN ORACLE 11 G USANDO BLOQUES ANONIMOS, CORRIDA EN WEB Y MODO CONSOLA DE
ORACLE
El método también se aplica para calcular volúmenes por medio de integrales usando los métodos de discos y anillos
aprendidos en Calculo I, II diferencial e integral
02/25/2018 profesor: Mgtr E Batista Him 4
Programa elaborado en lenguaje C, para calcular el área bajo la curva, utilizando el while
con condición de salida, con aproximación de n rectángulos. El mismo programa bajo visual
estudio 2013 también genera el mismo resultado al igual que corriendo en el celular
Realizar este mismo ejemplo pero en base de datos II, Oracle
11g, construya su código en SQL de Oracle como bloque
anónimo, utilice los if, while
02/25/2018 profesor: Mgtr E Batista Him 5
Programa por aproximación para integrar una función corrida en
lenguaje c y también en celular con androit
02/25/2018 profesor: Mgtr E Batista Him 6
CORRIDA DEL PROGRAMA LA INTEGRAL EN EL CELULAR Y COMPARADO CONTRA EL
METODO DE RECTANGULOS NOS DA LA MISMA RESPUESTA VS ORACLE 11G
Los limites superior van desde cero
hasta 2
02/25/2018 profesor: Mgtr E Batista Him 7
DISEÑO DEL FORMULARIO PARA CALCULAR AREAS Y VOLUMENES Y GRAFICA DE
FORMA AUTOMATICA LA CURVA EN EL FORMULARIO, VS ORACLE 11G
02/25/2018 profesor: Mgtr E Batista Him 8
DISEÑO DEL FORMULARIO PARA CALCULAR AREAS Y VOLUMENES
RESULTADO DE LA CORRIDA DE LA INTEGRAL EN UN BLOQUE ANONIMO ORACLE 11G
02/25/2018 9profesor: Mgtr E Batista Him
02/25/2018 profesor: Mgtr E Batista Him 10
-- ORACLE INTEGRAL DE UNA FUNCION ----
DECLARE
x number:=0; -- x es coordenada x sobre el eje (x,y)
y number:=0; -- funcion a integrar f(x)
z number:=0;
F_area number:=0; -- Area total integrada
b number:=2; -- limite superior 5
a number:=0; -- limite inferior 1 to 5
c integer:=8; -- Cantidad de cilcos
h number:=(b-a);
n integer:=0; -- numero ciclos para while
BEGIN
h:= h/c; --cantidad de particones
DBMS_OUTPUT.PUT_LINE(' PROYECTO DE BASE DE DATOS II LA INTEGRAL DEFINIDA');
DBMS_OUTPUT.PUT_LINE(' La integral definida y= 7x-8.5x^2 + 3x^3 ');
DBMS_OUTPUT.PUT_LINE('==================================================');
DBMS_OUTPUT.PUT_LINE(' f(X) ty parabola ');
DBMS_OUTPUT.PUT_LINE('===================================================');
WHILE n<(c+1) LOOP
if n=0 then
x:=a+(h/2);
end if;
-- y:=power(x,2); -- ecuacion a integrar y=x*x
y:= 7*x - 8.5*power(x,2)+ 3*power(x,3); -- ecuacion a integrar
x:=x+h; -- x mas el incremento dx
z:=z+y;
if n=(c-1) then
F_area:=z*h;
end if;
n:=n+1;
dbms_output.put_line('x= '||LPAD(to_char(round(x,5)),12)||LPAD(to_char(round(y,5)),14) );
END LOOP;
DBMS_OUTPUT.PUT_LINE(' ');
DBMS_OUTPUT.PUT_LINE('La integral Area='||to_char(ROUND(F_area,6)));
DBMS_OUTPUT.PUT_LINE('Limite inferior a= '||to_char(ROUND(a,2)));
DBMS_OUTPUT.PUT_LINE('Limite superior b= '||to_char(ROUND(b,2)));
DBMS_OUTPUT.PUT_LINE('Cantidad ciclos c= '||to_char(ROUND(c,0)));
END;
RESULTADO DE LA CORRIDA DE LA
INTEGRAL EN UN BLOQUE
ANONIMO ORACLE 11G CODIGO
FUENTE

aplicaciones varias integral definida oracle,

  • 1.
    02/25/2018 profesor: MgtrE Batista Him 1 APLICACIONES UTILIZANDO VISUAL ESTUDIO PARA LOS SIGUIENTES CALCULOS, EL CONCEPTO DE LA INTEGRAL DEFINIDA POR EL METODO DE RECTANGULOS PROYECTO NO.__ USANDO LA HERRAMIENTA DE ORACLE 11G BLOQUES ANONIMOS CALDUOS DE AREAS ENTRE DOS CURVAS CALCULOS DE VOLUMEN ENTRE DOS CURVAS CALCULO DE VOLUMEN SI GIRA SOBR EL EJE X O EJE Y LONGITUD DE CUERDA CENTROS DE MASA RECORDERIS DE CALCULO I, II DE LAS INTEGRALES DEFINIDAS UTILIZAR LOS BLOQUES ANONIMOS DE ORACLE 11G
  • 2.
    #include <stdio.h> #include <conio.h> //b= limite superior a = limite inferior float x,y,z,F_area; int a=1,b=5,c=12,n; // c= cantidad de ciclos x aproximados float h; main () { h=(b-a); h= h/c; // cantidad de particiones aproximado n=0; printf("==============================tn"); printf("x ty tn"); printf("==============================tn"); while(n<c+1) { if(n==0) { x=a+(h/2); } y=x*x; // ecuacion a integrar,--- cambiar aqui x=x+h; // x mas el incremento dx z=z+y; // if(n=c-1) { F_area =z*h; } -- ? n=n+1; printf("x=%f ty=%ftn",x,y); } printf("la integral del area=%fn",F_area); //Este es el resultado final. //getch(); return(0); } CONVERTIR SU CODIGO DE LENGUAJE C++ EN CODIGO DE SQL DE ORACLE USANDO EL IF THEN, WHILE LOOP, DECLARE, BEGIN, Y LA IMPRESIÓN DBMS_OUTPUT.PUT_LINE, LA INSTRUCCIÓN LPAD PARA LA IMPRESION Calcular de forma manual la función a integrar y la compara con el método calculado en Oracle 11g como bloque anónimo Utilice los limites inferior a=0, superior b=2 y cantidad ciclos=8 E integra la función siguiente 02/25/2018 2profesor: Mgtr E Batista Him
  • 3.
    02/25/2018 profesor: MgtrE Batista Him 3 APLICACIONES: CALCULO DE AREAS, VOLUMEN, LONGITUD UTILIZANDO EL METODO DE INTEGRACION POR MEDIO DE RECTANGULOS, EN VISUAL ESTUDIO NET PROYECTO , O EN ORACLE 11 G USANDO BLOQUES ANONIMOS, CORRIDA EN WEB Y MODO CONSOLA DE ORACLE El método también se aplica para calcular volúmenes por medio de integrales usando los métodos de discos y anillos aprendidos en Calculo I, II diferencial e integral
  • 4.
    02/25/2018 profesor: MgtrE Batista Him 4 Programa elaborado en lenguaje C, para calcular el área bajo la curva, utilizando el while con condición de salida, con aproximación de n rectángulos. El mismo programa bajo visual estudio 2013 también genera el mismo resultado al igual que corriendo en el celular Realizar este mismo ejemplo pero en base de datos II, Oracle 11g, construya su código en SQL de Oracle como bloque anónimo, utilice los if, while
  • 5.
    02/25/2018 profesor: MgtrE Batista Him 5 Programa por aproximación para integrar una función corrida en lenguaje c y también en celular con androit
  • 6.
    02/25/2018 profesor: MgtrE Batista Him 6 CORRIDA DEL PROGRAMA LA INTEGRAL EN EL CELULAR Y COMPARADO CONTRA EL METODO DE RECTANGULOS NOS DA LA MISMA RESPUESTA VS ORACLE 11G Los limites superior van desde cero hasta 2
  • 7.
    02/25/2018 profesor: MgtrE Batista Him 7 DISEÑO DEL FORMULARIO PARA CALCULAR AREAS Y VOLUMENES Y GRAFICA DE FORMA AUTOMATICA LA CURVA EN EL FORMULARIO, VS ORACLE 11G
  • 8.
    02/25/2018 profesor: MgtrE Batista Him 8 DISEÑO DEL FORMULARIO PARA CALCULAR AREAS Y VOLUMENES
  • 9.
    RESULTADO DE LACORRIDA DE LA INTEGRAL EN UN BLOQUE ANONIMO ORACLE 11G 02/25/2018 9profesor: Mgtr E Batista Him
  • 10.
    02/25/2018 profesor: MgtrE Batista Him 10 -- ORACLE INTEGRAL DE UNA FUNCION ---- DECLARE x number:=0; -- x es coordenada x sobre el eje (x,y) y number:=0; -- funcion a integrar f(x) z number:=0; F_area number:=0; -- Area total integrada b number:=2; -- limite superior 5 a number:=0; -- limite inferior 1 to 5 c integer:=8; -- Cantidad de cilcos h number:=(b-a); n integer:=0; -- numero ciclos para while BEGIN h:= h/c; --cantidad de particones DBMS_OUTPUT.PUT_LINE(' PROYECTO DE BASE DE DATOS II LA INTEGRAL DEFINIDA'); DBMS_OUTPUT.PUT_LINE(' La integral definida y= 7x-8.5x^2 + 3x^3 '); DBMS_OUTPUT.PUT_LINE('=================================================='); DBMS_OUTPUT.PUT_LINE(' f(X) ty parabola '); DBMS_OUTPUT.PUT_LINE('==================================================='); WHILE n<(c+1) LOOP if n=0 then x:=a+(h/2); end if; -- y:=power(x,2); -- ecuacion a integrar y=x*x y:= 7*x - 8.5*power(x,2)+ 3*power(x,3); -- ecuacion a integrar x:=x+h; -- x mas el incremento dx z:=z+y; if n=(c-1) then F_area:=z*h; end if; n:=n+1; dbms_output.put_line('x= '||LPAD(to_char(round(x,5)),12)||LPAD(to_char(round(y,5)),14) ); END LOOP; DBMS_OUTPUT.PUT_LINE(' '); DBMS_OUTPUT.PUT_LINE('La integral Area='||to_char(ROUND(F_area,6))); DBMS_OUTPUT.PUT_LINE('Limite inferior a= '||to_char(ROUND(a,2))); DBMS_OUTPUT.PUT_LINE('Limite superior b= '||to_char(ROUND(b,2))); DBMS_OUTPUT.PUT_LINE('Cantidad ciclos c= '||to_char(ROUND(c,0))); END; RESULTADO DE LA CORRIDA DE LA INTEGRAL EN UN BLOQUE ANONIMO ORACLE 11G CODIGO FUENTE