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
Once upon a time, | |
In the land of code, | |
There lived a young programmer, | |
Named Edward Kmett. | |
He was skilled in many languages, | |
And excelled in their use, | |
But one day he stumbled upon, | |
The mighty Haskell's muse. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 sympy as sy | |
import matplotlib.pyplot as plt | |
import numpy as np | |
x = sy.symbols('x') | |
cheb = sy.lambdify(x, sy.chebyshevt(4,x)) | |
xs = np.linspace(-1,1,1000) | |
ys = cheb(xs) | |
plt.plot(xs, ys) | |
plt.show() |