Can Matlab or Python find a solution to this complex nonlinear equation?

  • Context: MHB 
  • Thread starter Thread starter Dustinsfl
  • Start date Start date
  • Tags Tags
    Nonlinear
Click For Summary
SUMMARY

The forum discussion centers on solving a complex nonlinear equation using numerical methods in Mathematica, Matlab, and Python. The equation involves variables $\alpha$ and $\beta$, defined using arcsine functions, and is expressed in terms of the variable 'a'. While traditional methods like NSolve and Solve in Mathematica failed, the FindRoot function successfully provided a numerical approximation starting from an initial guess of {a,5000}. However, further analysis indicates that a=5000 is not a valid solution, and graphing suggests that the equation approaches zero only as 'a' approaches infinity.

PREREQUISITES
  • Understanding of nonlinear equations and numerical methods
  • Familiarity with Mathematica, specifically the FindRoot function
  • Basic knowledge of Matlab and Python for numerical analysis
  • Concepts of arcsine functions and their applications in equations
NEXT STEPS
  • Explore the FindRoot function in Matlab and Python for solving nonlinear equations
  • Learn about graphing techniques in Wolfram to visualize complex equations
  • Investigate the implications of numerical approximation errors in solutions
  • Study the behavior of nonlinear equations as variables approach infinity
USEFUL FOR

Mathematicians, engineers, and data scientists who are working with nonlinear equations and require numerical solutions using tools like Matlab and Python.

Dustinsfl
Messages
2,217
Reaction score
5
I let Mathematica run for over an hour but it couldn't solve this equation. Can someone run this in Matlab or Python and see if they can get a solution?

$\alpha = 2\arcsin\left(\sqrt{\frac{10014.6}{2*a}}\right)$
$\beta = 2\arcsin\left(\sqrt{\frac{10014.6 - 6339.06}{2*a}}\right)$

$$
780\sqrt{\frac{398600}{a^3}} = \alpha - \beta -(\sin(\alpha) - \sin(\beta))
$$
Solving for a.

Never mind. NSolve and Solve won't work but FindRoot did for {a,5000}.
 
Last edited:
Physics news on Phys.org
dwsmith said:
I let Mathematica run for over an hour but it couldn't solve this equation. Can someone run this in Matlab or Python and see if they can get a solution?

$\alpha = 2\arcsin\left(\sqrt{\frac{10014.6}{2*a}}\right)$
$\beta = 2\arcsin\left(\sqrt{\frac{10014.6 - 6339.06}{2*a}}\right)$

$$
780\sqrt{\frac{398600}{a^3}} = \alpha - \beta -(\sin(\alpha) - \sin(\beta))
$$
Solving for a.

Never mind. NSolve and Solve won't work but FindRoot did for {a,5000}.

a=5000 is not a solution.
Graphing it with Wolfram suggests that it will only be zero if $a \to \infty$.
FindRoot is probably doing some rounding and truncation.
 
I like Serena said:
a=5000 is not a solution.
Graphing it with Wolfram suggests that it will only be zero if $a \to \infty$.
FindRoot is probably doing some rounding and truncation.

{a,5000} means look for a solution beyound 5000
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
10
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K