Regardless of exactly which polynomial you are after, I've showed you how
to plot a cheb. poly. Can you not work with the code given and plot the
exact variation of polynomial you want?
On Tue, Jan 10, 2012 at 9:46 AM, Fabien Lafont wrote:
> No I just want to plot the third Shebitchev polynomi
No I just want to plot the third Shebitchev polynomial.
2012/1/10 Daniel Hyams :
> I think that you're misusing Chebyshev (do you really only want to give "3"
> as a coefficient..which is just the constant function 3), and you have to
> evaluate it in order to give matplotlib some x and y data to
I think that you're misusing Chebyshev (do you really only want to give "3"
as a coefficient..which is just the constant function 3), and you have to
evaluate it in order to give matplotlib some x and y data to plot.
from matplotlib import pyplot as plt
import numpy as np
x = np.linspace(-1.0,1.0
I'm trying to plot Chebyshev polynolmials using: numpy.polynomial.Chebyshev:
import math
from numpy import *
from numpy import polynomial as pol
from pylab import *
from scipy import *
from scipy import optimize
import warnings
warnings.simplefilter('ignore', np.RankWarning)
test = pol.Chebyshe