Simplify error in matlab

3 visualizaciones (últimos 30 días)
Bob
Bob el 29 de En. de 2015
Comentada: Sean de Wolski el 29 de En. de 2015
I have this code: simplify(((sin*(x^2))*(sec*x))/(1+sec*x))
and getting this error: Error using sin Not enough input arguments.
Error in project1 (line 5) p6=simplify(((sin*(x^2))*(sec*x))/(1+sec*x))

Respuestas (1)

Sean de Wolski
Sean de Wolski el 29 de En. de 2015
Editada: Sean de Wolski el 29 de En. de 2015
sin*
Is not a valid expression... sin is a function that expects inputs:
sin(1)
What you are doing is
sin*(1)
which will give the same error. Same with sec
  2 comentarios
Bob
Bob el 29 de En. de 2015
Thank you!
Sean de Wolski
Sean de Wolski el 29 de En. de 2015
If it worked, please accept the answer to mark it closed.

Iniciar sesión para comentar.

Categorías

Más información sobre Annotations 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