Академический Документы
Профессиональный Документы
Культура Документы
clc,clear all
disp('Gráfica de una Curva')
syms x
axis=([-2 3]);
f=-x.^3+3.*x.^2+2
ezplot(f)
grid on
xlabel('Eje x')
ylabel('Eje y')
title('-x^3+3*x^2+2')
2-M-FILE Generate a computer program to find the limit of the function at the given
point and then plot the graph of the function.
a)
clc
syms x
f=(x^3+4*x^2-3*x-2)/(x^2+13*x-14)
L=limit(f,x,1);
fprintf('Limite= %7.4f \n, double(L)')
ezplot(f, [-2 3])
xlabel('Eje x')
ylabel('Eje y')
title('(x^3+4*x^2-3*x-2)/(x^2+13*x-14)')
Limit=8/15
d)
% Programa para generar límites
clc
syms x
f=(x^3-5*x^2-3*x+3)/(3*x^3-
6*x^2-9*x)
L=limit(f,x,-1);
fprintf('Limite= %7.4f \n,
double(L)')
ezplot(f, [-2 3])
xlabel('Eje x')
ylabel('Eje y')
title('(x^3-5*x^2-3*x+3)/(3*x^3-
6*x^2-9*x)')
Limit=5/6
e)
% Programa para generar
límites y gráfica
clc
syms x
f=(3*x^2-17*x+20)/(4*x^2-
25*x+36)
limit(f,x,4)
ezplot(f)
xlabel('Eje x')
ylabel('Éje y')
Limit=1
f)
g)
% Programa para generar
límites y gráfica
clc
syms x
f=(sqrt(1+x)-sqrt(1-x))/x
limit(f,x,0)
t=ezplot(f);
set(t,'color','red)
xlabel('Eje x')
ylabel('Éje y')
Limit=1
Limit=-3/2
i)
j)
% Programa para generar límites y
gráfica
clc
syms x
f=(x-3)/(x^2-9)
limit(f,x,3)
t=ezplot(f);
set(t,'color','red')
xlabel('Eje x')
ylabel('Éje y')
Limit=1/6
k)
l)
clc
syms x
f=(sqrt(2+x)-sqrt(2))/x
limit(f,x,0)
t=ezplot(f);
set(t,'color','magenta')
xlabel('Eje x')
ylabel('Éje y')
Limit=sqrt(2)/4=0.35