Errors when solving an equation

  • Context: Mathematica 
  • Thread starter Thread starter Sokolov
  • Start date Start date
  • Tags Tags
    Errors
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting an error encountered while solving an equation in Mathematica. It focuses on syntax issues related to the use of assignment versus equality operators in the software.

Discussion Character

  • Technical explanation

Main Points Raised

  • One participant expresses confusion about an error in Mathematica when entering an equation.
  • Another participant suggests replacing the single “=” with “==” to correct the error, explaining the difference between assignment and logical equality.
  • A third participant acknowledges the basic nature of the issue and thanks the second participant for the clarification.
  • The second participant comments on the syntax of Mathematica, noting that it can be unusual but becomes clearer with practice.

Areas of Agreement / Disagreement

Participants appear to agree on the solution to the syntax issue, but there is no broader consensus on the overall experience with Mathematica.

Contextual Notes

The discussion does not address any specific limitations of the syntax or potential edge cases that may arise from the use of different operators.

Who May Find This Useful

New users of Mathematica or those encountering similar syntax issues may find this discussion helpful.

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?

1587900837349.png
 
Physics news on Phys.org
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.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
8
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K