An incorrect limit
A linear system of equations is correctly solved, but its specialization can't be correctly solved.
(simplify_)sum is problematic with non-atomic arguments.
I don't think Common Lisp COND is going to help here, since Maxima logical expressions aren't required to evaluate to true or false; if has the necessary machinery to handle values which are not true or false. I see your point Your solution is very elegant. I ignored that applying if on L would insert the required ifelse and else, the documentation doesn't even hints it.. It might be useful to d an explicit example along the lines of: (%i6) apply("if", [a, b, c, d, e, f]); (%o6) if a then b elseif...
What I can do : In Sagemath : sage: foo(x)=cases([(x<0, -1/x), (True, x^2)]) sage: [foo(x) for x in (-2..2)] [1/2, 1, 0, 1, 4] in Maxima : (%i1) display2d:false; (%o1) false (%i2) cases(x) ::=block([L], L:maplist(lambda([cl], if length(cl) # 2 then error("cases : clauses must be of length two.") else buildq([c:[first(cl)], a:[second(cl)]], if splice(c) then return(splice(a)))), x), buildq([L:L],ev(block(splice(L), false)))); (%o2) cases(x)::=block([L], L:maplist(lambda([cl], if length(cl) # 2 then...
Non-interactive interaction with Lisp
`rectform` ignores the `domain` setting
Le mardi 16 février 2021 à 07:52 +0000, Robert Dodier a écrit : status: open --> closed Comment: Fixed by commit 2138ce9. I put a loop counter into ROOTFAC to just give up (returning the input unchanged) if the loops exceed factor_max_degree. Sage's ticket status updated accordingly Thanks a lot ! -- Emmanuel Charpentier [bugs:#3712] Symbolic integration may fail when called with numerical constants in function and/or limits. Status: closed Group: None Labels: integrate floating point rational numer...