solve 2 equations with two sympolic variables
조회 수: 1 (최근 30일)
이전 댓글 표시
I want solve these equations with the same variables U10 and U20 because they are part of other code
2*U20 + sin(U20)
2*U10 + sin(U10 - 1) - 2
댓글 수: 0
답변 (1개)
Walter Roberson
2023년 2월 24일
Those are independent equations. Over the reals they have one solution each. U20=0, U10=1
댓글 수: 3
Askic V
2023년 2월 24일
First of all those are NOT equations. The equation can be for example: 2*U20 + sin(U20) = 0
We can assume that you mean that both expressions are equal to zero.
If that is the case, the code is very simple:
syms U20
f = solve(2*U20 + sin(U20), U20)
So the solution is zero, just like Walter told you.
Walter Roberson
2023년 2월 24일
syms U20
f = (2*U20 + sin(U20))
fplot(f, [-pi pi]); xline(0); yline(0)
Exactly 0.
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!