Simple Mathematica Question (Solve Function)

  • Context: Mathematica 
  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Function Mathematica
Click For Summary
SUMMARY

The forum discussion centers on the use of the Solve function in Mathematica for solving equations involving the variable F. The user encountered an issue due to the incorrect use of the logical operator '==' instead of the assignment operator '=' in their equation. The correct syntax for the Solve function is demonstrated as Solve[M*((5*P*L^3)/(48*H*J) - (5*F*L^3)/(384*H*J)) == 0, F]. This highlights the importance of using the correct operators in Mathematica to achieve desired results.

PREREQUISITES
  • Understanding of Mathematica syntax and functions
  • Familiarity with algebraic equations and solving for variables
  • Knowledge of logical versus assignment operators in programming
  • Basic grasp of mathematical notation and operations
NEXT STEPS
  • Explore Mathematica's documentation on the Solve function
  • Learn about the differences between logical and assignment operators in programming
  • Practice solving various algebraic equations in Mathematica
  • Investigate common pitfalls and troubleshooting techniques in Mathematica
USEFUL FOR

Students, educators, and professionals using Mathematica for mathematical computations, particularly those new to the software or programming concepts.

Saladsamurai
Messages
3,009
Reaction score
7
Why won't it solve this function for F ? I am new to Mathematica, so I am sure I am messing something up here!

Code:
Solve[M*((5*P*L^3)/(48*H*J) - (5*F*L^3)/(384*H*J)) - F = 0, F]
 
Physics news on Phys.org
Nevermind! Logical operator not same as assignment op! ==
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K