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)

 Réponse acceptée

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

1 commentaire

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by