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

19 vues (au cours des 30 derniers jours)
Paul
Paul le 10 Déc 2023
Déplacé(e) : Walter Roberson le 19 Déc 2024 à 19:20
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 commentaires
Walter Roberson
Walter Roberson le 10 Déc 2023
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 le 12 Déc 2023
Response from Tech Support confirms a bug. No immediate solution. May be considered for fixing in a future release.

Connectez-vous pour commenter.

Réponse acceptée

Paul
Paul le 22 Nov 2024 à 16:00
Déplacé(e) : Walter Roberson le 19 Déc 2024 à 19:20
Fixed in 2024b:
syms x real
simplify(dirac(x)) % works
ans = 
simplify(dirac(x),'All',true) % now works
ans = 

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by