simplify() with dirac and All = true Doesn't Work?

Why does the second call to simpify cause an error? Is that a bug?
syms x real
simplify(dirac(x)) % works
ans = 
simplify(dirac(x),'All',true) % error
Error using symengine
Invalid argument.

Error in mupadengine/evalin_internal

Error in mupadengine/fevalHelper

Error in mupadengine/feval_internal

Error in sym/simplify (line 80)
rSym = feval_internal(symengine, 'simplify', s,...

댓글 수: 2

I replicate the problem.
You might be amused to examine
regexprep(char(feval(symengine, 'expose', 'simplify')), '\\n', '\n')
but the result is a bit long, and it is not immediately obvious to me where the problem is.
Paul
Paul 2023년 12월 12일
Response from Tech Support confirms a bug. No immediate solution. May be considered for fixing in a future release.

댓글을 달려면 로그인하십시오.

 채택된 답변

Paul
Paul 2024년 11월 22일
이동: Walter Roberson 2024년 12월 19일
Fixed in 2024b:
syms x real
simplify(dirac(x)) % works
ans = 
simplify(dirac(x),'All',true) % now works
ans = 

추가 답변 (0개)

카테고리

제품

릴리스

R2023b

질문:

2023년 12월 10일

이동:

2024년 12월 19일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by