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

  • MHB
  • Thread starter Dustinsfl
  • Start date
  • Tags
    Nonlinear
In summary, the speaker tried to solve an equation using Mathematica but was unsuccessful. They asked if someone could try solving it using Matlab or Python. The equation involved two variables, alpha and beta, and a third equation to solve for a. After some discussion and attempts, it was determined that the solution for a is likely to be infinity.
  • #1
Dustinsfl
2,281
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
  • #2
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.
 
  • #3
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
 

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

What is a nonlinear equation?

A nonlinear equation is an equation in which the variables are not raised to a power of 1. This means that the relationship between the variables is not a straight line.

How do you solve a nonlinear equation?

The process of solving a nonlinear equation involves manipulating the equation to isolate the variable you are trying to solve for. This may involve using algebraic techniques such as factoring, expanding, and combining like terms.

What makes solving a nonlinear equation more difficult than solving a linear equation?

Nonlinear equations involve higher powers of the variables, making them more complex to solve. Additionally, nonlinear equations may have multiple solutions or no solutions at all, making the process of solving them more challenging.

What is the importance of solving nonlinear equations in scientific research?

Nonlinear equations are often used to model complex relationships in scientific research, such as in physics, biology, and economics. Solving these equations allows scientists to understand and predict the behavior of these systems.

Are there any strategies for solving particularly difficult nonlinear equations?

Yes, there are several strategies for solving difficult nonlinear equations. These include using numerical methods such as approximation or iteration, using graphing techniques to visualize the solution, and using computer software or calculators to assist in the process.

Similar threads

Replies
4
Views
1K
Replies
5
Views
2K
Replies
5
Views
2K
Replies
7
Views
797
Replies
4
Views
2K
Replies
1
Views
2K
Back
Top