91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 156KB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-01-10
  • 語(yǔ)言: Python
  • 標(biāo)簽: 數(shù)值分析??插值??

資源簡(jiǎn)介

研究生數(shù)值分析課程_最全python插值程序(朗格朗日_埃爾米特_三次樣條)_python。自己做的,南大的在讀研究生。

資源截圖

代碼片段和文件信息

__author__?=?‘jackWang‘
import?numpy?as?np
from?matplotlib.pylab?import?*

point?=?[]??#?point?=?[(0?1)?(1?2)?(3?4)?(4?5)?(5?6)?(6?7)]
n?=?5
x?=?arange(0?5?0.01)
y?a?b?c?d?h?s?=?[]?[]?[]?[]?[]?[]?[]



def?foo(x):
????return?2*sin(2*x)?+?1

def?drawAll():
????xlim(-0.5?5.3)
????ylim(-5?8.5)
????xlabel(“x“)
????ylabel(“y“)
????title(“Hermite“)
????for?i?in?point:
????????scatter(i[0]?i[1]?25)
????tmp?=?np.linspace(0?5?500)
????plot(tmp?foo(tmp)?color=“r“?label=“2*sin(2x)+1“)

????plot((x[0]?x[1])?(y[0]?y[1])?color=“c“?label=“Hermite“)
????legend(loc=“upper?right“)
????for?i?in?arange(0.01?4.9?0.005):
????????#pause(0.0001)
????????j?=?int(i*100)
????????plot((x[j-1]?x[j])?(y[j-1]?y[j])?color=“c“)
????show()



d

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-12-26?19:50??LagrangeInterplotion\
?????目錄???????????0??2018-10-25?20:07??LagrangeInterplotion\.idea\
?????文件?????????459??2018-10-22?09:06??LagrangeInterplotion\.idea\LagrangeInterplotion.iml
?????文件?????????219??2018-10-22?09:06??LagrangeInterplotion\.idea\misc.xml
?????文件?????????292??2018-10-22?09:06??LagrangeInterplotion\.idea\modules.xml
?????文件???????22820??2018-10-25?20:07??LagrangeInterplotion\.idea\workspace.xml
?????目錄???????????0??2018-12-26?19:49??LagrangeInterplotion\.ipynb_checkpoints\
?????文件???????19286??2018-12-26?19:49??LagrangeInterplotion\.ipynb_checkpoints\2.?Interpolation-checkpoint.ipynb
?????文件?????8970492??2018-12-26?19:43??LagrangeInterplotion\.ipynb_checkpoints\Interpolation-checkpoint.ipynb
?????文件???????19400??2018-12-26?19:50??LagrangeInterplotion\2.?Interpolation.ipynb
?????文件????????2177??2018-12-21?17:28??LagrangeInterplotion\Hermite.py
?????文件????????2885??2018-12-21?18:57??LagrangeInterplotion\Hermite_objectOriented.py
?????文件????????4297??2018-12-26?16:52??LagrangeInterplotion\main.py
?????文件?????????502??2018-10-25?19:32??LagrangeInterplotion\main2.py
?????文件?????????322??2018-10-24?20:45??LagrangeInterplotion\script.py

評(píng)論

共有 條評(píng)論

相關(guān)資源