Help on simplifying trigonometric expressions involving syms variable

After certain operations, I'm getting output for a syms variable 't1' as
cos(t1)^2 + sin(t1)^2
Is there a way to get this simplified in output?

 채택된 답변

Matteo Paolucci
Matteo Paolucci 2019년 9월 7일
이동: Dyuman Joshi 2024년 3월 1일

0 개 추천

if you want to simplify the expression can you try in this way:
y=cos(t1)^2 + sin(t1)^2
simplify(y)
or directly
syms x
S = simplify(sin(x)^2 + cos(x)^2)
I hope I have been helpful

댓글 수: 1

OP mistakenly accepted their comment linking this answer. I have unaccepted that response and moved it to comment.
Correspondingly, I have moved this comment to an answer, and accepted it, as it has solved OP's problem.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

질문:

2019년 9월 7일

이동:

2024년 3월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by