From 9dc56bfb84d334ee2580f7f0e48ee55af395a3ce Mon Sep 17 00:00:00 2001 From: Ayush Kumar Date: Fri, 24 Jun 2022 21:00:16 +0530 Subject: [PATCH] extended simplify function rules to include fractions with coefficients --- src/function/algebra/simplify.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/function/algebra/simplify.js b/src/function/algebra/simplify.js index ee18b2eeed..24a0453bdf 100644 --- a/src/function/algebra/simplify.js +++ b/src/function/algebra/simplify.js @@ -495,8 +495,17 @@ export const createSimplify = /* #__PURE__ */ factory(name, dependencies, ( assuming: { multiply: { associative: true } } }, - { l: 'n1/(-n2)', r: '-n1/n2' } + { l: 'n1/(-n2)', r: '-n1/n2' }, + { + s: '(c1*v+c2)/c3 -> ((c1*v)/c3)+c2/c3', + assuming: { multiply: { associative: true } } + }, + + { + s: '(-(c1*v)-c2)/c3 -> (-c1/c3)*v+-(c2/c3)', + assuming: { multiply: { associative: true } } + } ] /**