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

조회 수: 62 (최근 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개)

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by