Warning: Unable to display symbolic object because 'symengine' was reset. Repeat commands to regenerate result.

Applying cramer's rule for a 2x2 matrix to solve for constants C_1 and C_2 but keeps returning "Unable to display symbolic object because 'symengine' was reset. Repeat commands to regenerate result". Hopefully not making an elementary error but recently updated to 2024a version and been having error message for other codes. I'm using syms, as I'm not provided with spring constant, n, or xi. Therefore I treat them as scalar variables. I appreciate any pointers/tips to resolve this problem. Thanks.
%Clamped and Rotational Spring
clc
clear all
format short g
syms k n xi
a = [(1-(k/2)), (1-k); (1/6), (1/2)];
x = [((k*(1)^(n+2))/((n)*(n+1)*(n+2)))-((1^(n+1))/((n)*(n+1))), (1-k); ((1)^(n+3))/((n)*(n+1)*(n+2)*(n+3)), 1/2];
y = [(1-(k/2)), ((k*(1)^(n+2))/((n)*(n+1)*(n+2)))-((1^(n+1))/((n)*(n+1))); 1/6, -((1^(n+3))/((n)*(n+1)*(n+2)*(n+3)))];
determinant_a = det(a)
determinant_a = 
determinant_x = det(x)
determinant_x = 
determinant_y = det(y)
determinant_y = 
C_1 = determinant_x * (determinant_a)^-1
C_1 = 
C_2 = determinant_y * (determinant_a)^-1
C_2 = 
f = (((xi)^(n+3))/((n)*(n+1)*(n+2)*(n+3))) + (C_1)*(((xi)^(3))/(6)) + (C_2)*(((xi)^(2))/(2))
f = 

5 件のコメント

Torsten
Torsten 2024 年 4 月 10 日
編集済み: Torsten 2024 年 4 月 10 日
Runs here without problems (see above).
Below is the link to a forum contribution of someone who got the same warning message. But I can't imagine that not enough RAM could be the reason in your case.
Alexander Gaudreau
Alexander Gaudreau 2024 年 4 月 10 日
編集済み: Alexander Gaudreau 2024 年 4 月 10 日
Very strange... I have enough storage. I'm thinking of downloading previous version which when I used syms had no problems. Possible bug?
Torsten
Torsten 2024 年 4 月 10 日
編集済み: Torsten 2024 年 4 月 10 日
Possible bug?
Maybe. You don't seem to be the only one with this problem:
You should report it to Technical Support as a potential bug.
Can you provide link where to send request?
Torsten
Torsten 2024 年 4 月 11 日
編集済み: Torsten 2024 年 4 月 11 日

サインインしてコメントする。

 採用された回答

Harald
Harald 2024 年 4 月 11 日
Hi,
this seems to be due to a bug in R2024a which is fixed with the Update 1 release that is expected to become available to all users by end of next week (April 18).
The bug is specific to using Symbolic Math Toolbox together with clear all. I typically discourage using clear all as this clears more than necessary in most cases:
If you still experience issues without using clear all or after installing the update release, please contact Technical Support for further investigation.
Best wishes,
Harald

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Programming についてさらに検索

製品

リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by