Docsity

PROGRAMMING CODE FOR INTEGRATING, DERIVING OR FINDING LIMITS OF AN EQUATION, Apuntes de Programación Informática

Toggle sidebar
bg1
% este programa resuelve sistemas de ecuaciones por distintos metodos
clear all
clc
display('selecciona si quieres : 1= encontrar un limite, 2= derivadas, 3=
integrales')
P=input('introduce tu seleccion ');
switch(P)
case 1
syms x, f=input('introduce tu funcion ')
a=input('introduce tu limite ')
limit(f,x,a)
case 2
syms x, f=input('introduce tu funcion ')
a=input('introduce numero de veces que quieres derivar tu funcion
');
y=diff (f,a)
case 3
v=input('si es una integral definida teclea 1, si es indefinida
cualquier numero ');
if v<=1;
syms x, f=input('introduce tu funcion ')
a=input('introduce tu limite inferior ');
b=input('introduce tu limite superior ');
y=int(f,a,b)
r=vpa(y)
else v>1
syms x, f=input('introduce tu funcion ')
y=int(f)
vpa(y)
end
end

Vista previa parcial del texto

¡Descarga PROGRAMMING CODE FOR INTEGRATING, DERIVING OR FINDING LIMITS OF AN EQUATION y más Apuntes en PDF de Programación Informática solo en Docsity!

% este programa resuelve sistemas de ecuaciones por distintos metodos clear all clc display('selecciona si quieres : 1= encontrar un limite, 2= derivadas, 3= integrales') P=input('introduce tu seleccion '); switch(P) case 1 syms x, f=input('introduce tu funcion ') a=input('introduce tu limite ') limit(f,x,a) case 2 syms x, f=input('introduce tu funcion ') a=input('introduce numero de veces que quieres derivar tu funcion '); y=diff (f,a) case 3 v=input('si es una integral definida teclea 1, si es indefinida cualquier numero '); if v<=1; syms x, f=input('introduce tu funcion ') a=input('introduce tu limite inferior '); b=input('introduce tu limite superior '); y=int(f,a,b) r=vpa(y) else v> syms x, f=input('introduce tu funcion ') y=int(f) vpa(y) end end