What is wrong with my solve function?
조회 수: 7 (최근 30일)
이전 댓글 표시
This is an example from the solve documentation, however my matlab isn't getting the same output as the example. Does anyone know why this is happening? The output is supposed to be solx=pi/2
Matlab Code:
syms x
eqn = sin(x) == 1;
solx = solve(eqn,x)
x =
x/sin(x) == x
solx =
x/sin(x) == x
댓글 수: 0
답변 (2개)
Steven Lord
2016년 10월 21일
Did you previously define a variable named sin that's taking precedence over the built-in sin function? You can check this using the which function.
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!