Borrar filtros
Borrar filtros

Help on simplifying trigonometric expressions involving syms variable

7 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Matteo Paolucci
Matteo Paolucci el 7 de Sept. de 2019
Movida: Dyuman Joshi el 1 de Mzo. de 2024
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 comentario
Dyuman Joshi
Dyuman Joshi el 1 de Mzo. de 2024
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by