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 件のコメント

Walter Roberson
Walter Roberson 2023 年 12 月 10 日
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 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeElementary Math についてさらに検索

製品

リリース

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