Errors when solving an equation

  • Topic: Mathematica 
  • Thread starter Sokolov
  • Start date
  • Tags Tags
    Errors
3 replies · 2K views · last reply
Sokolov
Messages
14
Reaction score
1
I'm new with Mathematica and I'm not sure why when I enter this equation an error happens. Could anyone please help me with it?

Mathematica notebook screenshot: input Assuming[Element[n, Integers], Solve[(d/dx ((sin[nx]/sin[x])^2)) == 0, x]], with Tag Times error message showing d sin[nx]^2 over dx sin[x]^2 is Protected, and Solve error stating 0 is not a quantified system of equations and inequalities; output is Solve[0, x].
 
You need to replace your “=“ with “==“. The single “=“ sets the thing in the left to the value on the right. The double “==“ is a logical test of equality and returns True if the left side is equal to the right.
 
  • Like
Likes   Reactions: Sokolov
Okay, how basic was it... Thank you!
 
  • Like
Likes   Reactions: Dale
No problem. The syntax of Mathematica is a little unusual and takes some getting used to. But once you do get used to it it is very clear and concise and nice to work with.