flathub / flathub/org.octave.Octave

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

Open
#367 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
20
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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))

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.