Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify with kron doesn't work anymore in the symbolic package #367

Open
gmelard opened this issue Oct 4, 2024 · 0 comments
Open

simplify with kron doesn't work anymore in the symbolic package #367

gmelard opened this issue Oct 4, 2024 · 0 comments

Comments

@gmelard
Copy link

gmelard commented Oct 4, 2024

Simplification of an expression involving "kron" doesn't work anymore in the symbolic package
Line 46 is
Hcal(z) = kron(Gcal(z)*Sigmasqrt,transpose(inv(B(z)))*inv(Sigmasqrt))
where I had previously defined "syms Gcal Kcal sigma Pcal Qcal", In = eye(n), and Sigmasqrt = In
Line 47 is
Hcal(z) = simplify(Hcal(z))
I had the mistake when simplify was in line 46 so I broke the instruction in two parts and it is simplify that doesn't work.
This worked in version 8.2.
Here are the error messages:
error: Python exception: NameError: name 'TensorProduct' is not defined
occurred while copying variables to Python.
Try "sympref reset" and repeat your command?
(consider filing an issue at https://github.com/gnu-octave/symbolic/issues)
error: called from
pycall_sympy__ at line 192 column 5
subs at line 269 column 5
subsref at line 46 column 11
E:/MELARD/RECH/KLE/25KM25/NewARMAEx0GLv9 - Octave.m at line 47 column 9
To try a workaround, I deleted Line 47 but then the same mistake occurs on the next instruction
[NHcal(z), DHcal(z)] = numden(Hcal(z))

@gmelard gmelard changed the title kron doesn't work anymore in the symbolic package simplify with kron doesn't work anymore in the symbolic package Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant