From 4ba30640fbbae8d4efb5e706966edffd922d2fc0 Mon Sep 17 00:00:00 2001 From: veypi Date: Sun, 17 Jan 2021 05:14:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A6=20=E7=BA=BF=E6=80=A7=20?= =?UTF-8?q?=E5=B2=AD=E5=9B=9E=E5=BD=92=20=E5=A4=9A=E9=A1=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- numerical_analysis/6/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/numerical_analysis/6/main.py b/numerical_analysis/6/main.py index 67b0b3f..e08190e 100644 --- a/numerical_analysis/6/main.py +++ b/numerical_analysis/6/main.py @@ -8,7 +8,11 @@ from sklearn.preprocessing import PolynomialFeatures def f1(x, e): return math.exp(-x) * math.sin(x) \ - + random.normalvariate(0, e ** 2) + + random.normalvariate(0, e) + + +def f2(x, y, e): + return math.exp(-x ** 2 - y ** 2) * math.sin(x * y) + random.normalvariate(0, e) def solve1(x, y):