Skip to content

Commit

Permalink
matrix:det - simplify vars
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos committed Mar 4, 2023
1 parent 5d1f890 commit d555703
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public Atom apply(Environment env, List<Atom> args) {
detData.add(L[i][i].getUserdata(MathExpression.class).getData());
detData.add(U[i][i].getUserdata(MathExpression.class).getData());
}
return new Atom(new MathExpression(env, vars, new Atom(detData)).simplify(env));
LinkedHashSet<String> hs = new LinkedHashSet<>();
Atom dd = new Atom(detData);
MathExpression.unknownsFrom(dd, hs);
return new Atom(new MathExpression(env, hs, dd).simplify(env));
}

@Override
Expand Down

0 comments on commit d555703

Please sign in to comment.