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
from mpl_toolkits.mplot3d import Axes3D | |
from matplotlib import cm | |
from matplotlib.colors import LogNorm | |
import matplotlib.pyplot as plt | |
import numpy as np | |
fig = plt.figure() | |
ax = Axes3D(fig, azim = -128, elev = 54) | |
X = np.arange(-2, 2, 0.1) | |
Y = np.arange(-2, 2, 0.1) |
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
from mpl_toolkits.mplot3d import Axes3D | |
from matplotlib import cm | |
from matplotlib.colors import LogNorm | |
import matplotlib.pyplot as plt | |
import numpy as np | |
fig = plt.figure() | |
ax = Axes3D(fig, azim = -128, elev = 54) | |
X = np.arange(-2, 2, 0.1) | |
Y = np.arange(-2, 2, 0.1) |
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
from mpl_toolkits.mplot3d import Axes3D | |
from matplotlib import cm | |
from matplotlib.colors import LogNorm | |
import matplotlib.pyplot as plt | |
import numpy as np | |
fig = plt.figure() | |
ax = Axes3D(fig, azim = -128, elev = 52) | |
X = np.arange(-4.5, 4.5, 0.1) | |
Y = np.arange(-4.5,4.5, 0.1) |
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
from mpl_toolkits.mplot3d import Axes3D | |
from matplotlib import cm | |
from matplotlib.colors import LogNorm | |
import matplotlib.pyplot as plt | |
import numpy as np | |
fig = plt.figure() | |
ax = Axes3D(fig, azim = -120, elev = 58) | |
X = np.arange(-6, 6, 0.1) | |
Y = np.arange(-6, 6, 0.1) |
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
from mpl_toolkits.mplot3d import Axes3D | |
from matplotlib import cm | |
from matplotlib.colors import LogNorm | |
import matplotlib.pyplot as plt | |
import numpy as np | |
fig = plt.figure() | |
ax = Axes3D(fig, azim = -120, elev = 52) | |
X = np.arange(-6, 6, 0.1) | |
Y = np.arange(-6, 6, 0.1) |
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
from mpl_toolkits.mplot3d import Axes3D | |
from matplotlib import cm | |
from matplotlib.colors import LogNorm | |
import matplotlib.pyplot as plt | |
import numpy as np | |
fig = plt.figure() | |
ax = Axes3D(fig, azim = -128, elev = 52) | |
X = np.arange(-2, 2, 0.1) | |
Y = np.arange(-2,2, 0.1) |
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
%Limpiamos la pantalla y mostramos el nombre del método | |
clear | |
clc | |
disp('Metodo de Newton Raphson') | |
%Introducimos la función,la derivada, el punto de inicio,así como | |
%porcentaje de error | |
f=input('Introduzca la funcion f(x):','s'); | |
d=input('Introduzca la derivada de la funcion dy/dx:','s'); | |
pi=input('Introduzca el punto de inicio:'); |
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
from mpl_toolkits.mplot3d import Axes3D | |
from matplotlib import cm | |
from matplotlib.colors import LogNorm | |
import matplotlib.pyplot as plt | |
import numpy as np | |
fig = plt.figure() | |
ax = Axes3D(fig, azim = -29, elev = 49) | |
X = np.arange(-6, 6, 0.1) | |
Y = np.arange(-6, 6, 0.1) |
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 re, collections | |
def words(text): return re.findall('[a-z]+', text.lower()) | |
def train(features): | |
model = collections.defaultdict(lambda: 1) | |
for f in features: | |
model[f] += 1 | |
return model | |
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 re, collections | |
def words(text): return re.findall('[a-z]+', text.lower()) | |
def train(features): | |
model = collections.defaultdict(lambda: 1) | |
for f in features: | |
model[f] += 1 | |
return model | |
NewerOlder