0% found this document useful (0 votes)
6 views3 pages

Polynomial Fitting with Matplotlib

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

Polynomial Fitting with Matplotlib

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

05/05/2023 12:12 Untitled7.

ipynb - Colaboratory

import [Link] as plt


import numpy as np

#donnees
A = [0,1,2,3,4,5]
B = [0,0.8,0.9,0.1,-0.8,-1]

#tracage des donnees


[Link](A,B,'o')
[Link]()

from sys import ps2


#1 l exposant f(x)=ax*n+b*n-1+cx*n1....+d les n
p1 = [Link](A,B,1)
p2 = [Link](A,B,2)
p3 = [Link](A,B,3)
p4 = [Link](A,B,4)
p5 = [Link](A,B,5)

[Link] 1/3
05/05/2023 12:12 [Link] - Colaboratory
xp=[Link](-2,6,100)

p1

#tracage
[Link](A,B,'o')
[Link](xp,[Link](p1,xp),'r')
[Link](xp,[Link](p2,xp),'g')
[Link](xp,[Link](p3,xp),'y')
[Link](xp,[Link](p4,xp),'c')
[Link](xp,[Link](p5,xp),'b')
[Link]()

[Link] 2/3
05/05/2023 12:12 [Link] - Colaboratory

[Link] 3/3

You might also like