From dbe81791beb5af5e3f4d797f22ab43013ab4965a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AD=90=E6=B6=B5?= <2067519648@qq.com> Date: Mon, 24 Feb 2025 17:00:31 +0800 Subject: [PATCH] fix: POW_4_FN --- web/app/sketcher/constr/polynomial.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/sketcher/constr/polynomial.ts b/web/app/sketcher/constr/polynomial.ts index 7d39529b..745ada7a 100644 --- a/web/app/sketcher/constr/polynomial.ts +++ b/web/app/sketcher/constr/polynomial.ts @@ -515,7 +515,7 @@ export const POW_0_FN = new ToThePowerFunction(0, x => 1, x => 0); export const POW_1_FN = new ToThePowerFunction(1, x => x, x => 1); export const POW_2_FN = new ToThePowerFunction(2, x => x*x, x => 2*x); export const POW_3_FN = new ToThePowerFunction(3, x => x*x*x, x => 3*x*x); -export const POW_4_FN = new ToThePowerFunction(3, x => x*x*x*x, x => 4*x*x*x); +export const POW_4_FN = new ToThePowerFunction(4, x => x*x*x*x, x => 4*x*x*x); export const COS_FN = new FreeFunction(x => Math.cos(x), x => -Math.sin(x) ,'cos', (k, x, b) => new Polynomial(0).monomial(1).term(x, new CosineOfSum(k, b))); export const SIN_FN = new FreeFunction(x => Math.sin(x), x => Math.cos(x), 'sin', (k, x, b) => new Polynomial(0).monomial(1).term(x, new SineOfSum(k, b)));