From 634aa6e548145d865327188a7a3517fdd0ce1cb3 Mon Sep 17 00:00:00 2001 From: Vitaly Magerya Date: Thu, 31 May 2018 18:39:08 +0200 Subject: [PATCH] Allow expreseq in the arguments of lsolve(eqns, vars). See . --- ginac/inifcns.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ginac/inifcns.cpp b/ginac/inifcns.cpp index d81b03c7..db40dba6 100644 --- a/ginac/inifcns.cpp +++ b/ginac/inifcns.cpp @@ -1071,20 +1071,20 @@ ex lsolve(const ex &eqns, const ex &symbols, unsigned options) } // syntax checks - if (!eqns.info(info_flags::list)) { - throw(std::invalid_argument("lsolve(): 1st argument must be a list or an equation")); + if (!(eqns.info(info_flags::list) || eqns.info(info_flags::exprseq))) { + throw(std::invalid_argument("lsolve(): 1st argument must be a list, a sequence, or an equation")); } for (size_t i=0; i