Gpt1 5

Páginas: 2 (257 palabras) Publicado: 6 de septiembre de 2015
´ ANDRES
UNIVERSIDAD MAYOR DE SAN
´
FACULTAD DE CIENCIAS ECONOMICAS
Y FINANCIERAS
´ DE EMPRESAS
CARRERA ADMINISTRACIONAsignatura: TIC II
LABORATORIO 1 - GNUPLOT
Catedr´atico: Mg.Sc. Carlos Mullisaca Choque
Marzo 2015

1.

Objetivo:
Graficar funcionesaplicando software libre Gnuplot.
1. > help plot
2. > plot x
3. > set xrange [0:1]
> set samples 7
> plot x*x
> reset
4. set xrange[-1:0]
set yrange [-20:20]
plot x
5. plot [-10:10] sin(x), atan(x), cos(atan(x))
set samples 500
replot
6. help functions
7. settitle ”Funciones trigonom´etricas”
set xlabel ”x [grados]”
set ylabel τ (x)”
plot [-pi:pi] sin(x) title ”sen(x)”with linespointslinetype 4 linewidth 3, atan(x), cos(atan(x))
plot [-pi:pi] sin(x) t ”sen(x)”w lp lt 4 lw 3, atan(x), cos(atan(x))
”quit.oCtrl-D.
8. f(x)=a+b*x
g(x,a,b)=a+b*x
plot f(x)
plot g(x,1.0,2.0)

1

9. f(x)=a+b*x
a=12.0
b=2.0
plot f(x)

2.

Pr´actica:

1.- Graficarla funci´on y = x2 − 2 para x [−3, 3] y y [−4, 4] y mostrar una rejilla de l´ıneas tras la gr´afica
2.- Definir las funciones: f(x) = 5x − 2 y g(x) = 2x + 3 graficar ambas funciones en una misma figura
3.- Graficar la funci´on Cuadr´atica f (x) = x2 + 2x +1; forzar a que las referencias (KEY) aparezcan abajo
a la derecha y, que en lugar de f(x) aparezca la leyenda Curva 1.

2

Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • cubo de 5*5*5
  • 5
  • 5
  • 5
  • 5
  • 5
  • 5
  • 5

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS