Mathematica How to not let Mathematica display not enough equations message?

  • Thread starter Thread starter tgt
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
When using Mathematica, encountering the 'not enough equations' message occurs when the number of equations is fewer than the number of variables. To suppress this message, users can utilize the command Off[Solve::svars]. Alternatively, a preferred method is to employ the Reduce function, which provides solutions in terms of the unknown variables without generating the warning message. This approach is particularly useful for scenarios where having fewer equations than variables is intentional.
tgt
Messages
519
Reaction score
2
When the number of equations is less then the number of variables, mathematica displays the 'not enough equations' message. How to not let it display this message as sometimes it is intended to have number of equations less then the number of variables.
 
Physics news on Phys.org
You can surpress the message,
Code:
Off[Solve::svars]
or, which I personally prefer, you can use a function like Reduce which just gives the solution in terms of unknowns.
 

Similar threads

Replies
2
Views
2K
Replies
0
Views
2K
Replies
4
Views
2K
Back
Top