Unidentified Function error when trying to solve an equation

I am simply trying to solve the equation for the variable k and every time I run the program it comes back with an unidentified variable error below is the code and the result
When I copy it into wolframalpha it comes back just fine so I know I didnt type the equation wrong.
Code
solve(2*pi*sqrt((.5*((k^2)+(((4/3)*k)^2))))==100 , k)
Result
Undefined function or variable 'k'.
Error in MitchAndrewsLab1 (line 18) solve('2*pi*sqrt((.5*((k^2)+(((4/3)*k)^2))))==100' , k)

 Respuesta aceptada

You need to define k as symbolic before the expression:
syms k
solve(etc,k)

1 comentario

Thanks so much! I figured it was something simple like that.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 10 de En. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by