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

89 ビュー (過去 30 日間)
Alexander Gaudreau 2024 年 4 月 10 日
コメント済み: Alexander Gaudreau 2024 年 4 月 11 日
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 件のコメント3 件の古いコメントを表示3 件の古いコメントを非表示
Alexander Gaudreau 2024 年 4 月 11 日
Can you provide link where to send request?
Torsten 2024 年 4 月 11 日

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

### 採用された回答

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
##### 1 件のコメント-1 件の古いコメントを表示-1 件の古いコメントを非表示
Alexander Gaudreau 2024 年 4 月 11 日
Thank you very much! This fixed the issue.

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

### カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

R2024a

### Community Treasure Hunt

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

Start Hunting!

Translated by