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

68 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

采纳的回答

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

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by