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.
Response from Tech Support confirms a bug. No immediate solution. May be considered for fixing in a future release.

请先登录,再进行评论。

 采纳的回答

Fixed in 2024b:
syms x real
simplify(dirac(x)) % works
ans = 
simplify(dirac(x),'All',true) % now works
ans = 

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

产品

版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by