This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%Creado por:Ronal Forero | |
%Programa del metodo de Biseccion | |
clc, clear %limpiamos pantalla, limpiamos workspace | |
fprintf('\n Nota:Ingrese el plinomio como un vector. \n') | |
fprintf('\n Ejemplo: x^3 + 4x^2 + 7x + 9 => [1 4 7 9] \n') | |
pol=input('\nIngrese el polinimoio:'); | |
tol=input('\nIngrese la Tolerancia permitida:'); | |
a=input('\n Ingrese el punto "a" del intervalo [a,b]:'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%para derivar | |
/wolfram derivare x^2 | |
%Resolver una integral definida | |
/wolfram integrate sin(cos x) from x=0 to 1 | |
%convercion decimal binario | |
/wolfram 210 to binary | |
%para graficar, solo debemos escribir la ecuacion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pruebamatriz (k) | |
function [ ] = CorrerProyecto() | |
%************************************************* | |
%Matriz 4x4 numeros del 0 al 15 | |
%************************************************* | |
if (k==1) | |
for j= 1 : 4 %columnas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
datos =np.arange (0,80) | |
plt.plot(datos,"r--") | |
plt.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
# Declaroamos x & y como vectord | |
x= [] | |
y= [] | |
# Abrimos el archivo donde estan los datos, y colocamos 'r' para leer | |
dataset = open('tabla.csv', 'r') | |
for line in dataset: | |
#leemos y guardamos en la variable line | |
line=line.strip() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# #!/usr/bin/python | |
#Importamos las clases de PySide | |
import sys | |
from PySide import QtCore,QtGui | |
#Creamos una aplicacion Qt | |
app = QtGui.QApplication(sys.argv) | |
mainwindow= QtGui.QWidget() | |
mainwindow.resize(600,407) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PySide import QtCore,QtGui | |
#Creamos una aplicacion Qt | |
app = QtGui.QApplication(sys.argv) | |
imged = QtGui.QPixmap('img.jpg') | |
tabwidget= QtGui.QTabWidget() | |
tab1=QtGui.QWidget() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
#creamos un diccionario en python | |
print ("Diccionario de python:") | |
mensaje = {"carga1": True, "carga2": False, "carga3": True, "carga4": True , "corriente1": 3.5, "corriente2": 0,"corriente3": 0,"corriente4": 0} | |
print (mensaje) | |
print ("Tipo de variable:") | |
print (type(mensaje)) | |
print ("===============================================================") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f=open("lineas.txt","r") | |
lines = f.readlines() | |
#leemos la linea 0 | |
ip=lines[0] | |
#le quitamos el salto de linea al final | |
ip=ip[:-1] | |
#leemos la linea 1 | |
puerto=lines[1] | |
puerto=puerto[:-1] | |
print(ip) |