Questions on the analytic and numeric equation solving functions of Mathematica (Solve, Reduce, NSolve, FindRoot, DSolve, RSolve, etc.).

learn more… | top users | synonyms (5)

0
votes
2answers
52 views

Getting the first solution instance

How do I get Mathematica to stop a solver and give a result as soon as it finds the first solution instance? I tried this: ...
0
votes
1answer
57 views

Solve not returning anything

I have the following function: ...
0
votes
0answers
48 views

Sharp Ratio Maximization, Closed Forms

I am trying to get a closed form for the following first order conditions (n=4): Here's the nb-File. The code is as follows: ...
5
votes
1answer
107 views

Closed form of two-layer recurrence

I am trying to find a closed-form expression for $A(0)$, described by the following recurrence forms, as a function of $L$ and $d$: \begin{align} A(\ell) &= 1 + 2^d A(\ell+1) + \sum_{g=0}^{d-1} ...
0
votes
1answer
42 views

Trouble in finding instances of values of variables that satisfy an inequality

Consider the following mathematical expression with complex numbers (phasor) and two variables (lambda and ia2): ...
6
votes
2answers
178 views

Solving a two variable two equation trig expression

I am trying to use Solve to get what two angles (A and B) are in a problem I have. ...
0
votes
1answer
98 views

Plotting level curves for 2-variable exponential equation (Lotka-Volterra) - how?

I have $$\frac{e^{(d x + b y)}}{x^c y^a}$$ Incidentally, this is the energy integral for Lotka-Volterra as given by my lecturer's notes. I would like to draw the level curves for this equation for ...
13
votes
3answers
4k views

Find all roots of an interpolating function (solution to a differential equation)

I'm trying to find all the roots of the solution to a differential equation. Using NSolve or Reduce I don't get the roots, so I'm using an iterative method which I found in physicsforums.com. This ...
1
vote
0answers
70 views

How much time for solving a system of equations?

I wrote the following code for system of 11 equations; however when I run, it shows "Running" and has not converged to any answer after 2 hours. Please let me know whether it is normal or how I should ...
5
votes
2answers
160 views

Reduce applied to vectors doesn't work right?

Reduce[{x,0}=={0,0}, x] gives x==0 as it should, but Reduce[{x,0}!={0,0}, x] gives False, which indicates no solution ...
0
votes
1answer
70 views

Problem in solving non linear set of equation?

I am trying to solve a set of non linear equation but using the function nsolve but mathematica is not giving me proper answer. The code is given below. ...
0
votes
2answers
53 views

Exporting and Importing solution sets from NSolve

I have a rather large data set that I need to solve for, then save to my hard disk and import in the same format at a later time. This proves to be tricky. I use ...
1
vote
1answer
55 views

Solve for a variable using expression involving sum of quantities

I am trying to solve for h1 using function solve as in below code, Expression in solve equates sum of two expression. Both left hand and right hand side of expression is the sum of four quantities ...
3
votes
0answers
90 views

Stability analysis of transcendental equation (stability crossing curves)

I am working with a non-linear delay system with three scalar delays. After taking the Laplace transform of the linearized system, the characteristic function is a transcendental equation with three ...
0
votes
0answers
38 views

How to solve a system of equations which includes vectors? [duplicate]

I'm starting to wonder if this is something that mathematica just can't do? I thought something like this might work: ...
1
vote
1answer
49 views

Reducing a system of vector equations

I'm trying to solve a system of vector equations. I know this is solvable since I've done it myself by hand (I reduced it to solving the root of a quartic anyway). I'm trying to do it in Mathematica ...
0
votes
2answers
120 views

Solving an equation takes too long

I am trying to solve the following equation func[a, b, c, d, e] == 0 where ...
3
votes
1answer
471 views

HarmonicNumber problem

I am looking for all the roots of HarmonicNumber, in the domain [-30, 1] and [0, 6000] for the real and imaginary parts, respectively, and where the parameter ...
15
votes
1answer
876 views

Is Mathematica `ContourPlot` function really so efficient?

I wanted to find the roots of the function $f(x,y)=\sin(3.2x)\sin(1.3y)-2.1 \sin(1.3x)\sin(3.2y)$. This is what the function looks like: ...
0
votes
0answers
69 views

Solving a Transcendental Function of two variables numerically

I have a transcendental function F of two variables, i.e. F(x,y). The function F contains ...
2
votes
1answer
149 views

NDSolve doesn't work for this simple differential equations

I try to use NDSolve to do this partial differential equations, but the result is wrong... The source term is a Gaussian pulse as time and an exponential decay with the depth z. The result should be ...
0
votes
1answer
37 views

Defining a function in terms of a solution returned by Solve

The title is a little ambiguous, but I didn't know how else to put it. What I'm trying to do is solve a system of equations ...
0
votes
1answer
67 views

Use FindRoot to get the root with minimum imaginary part

For example, define test[z_] := Cosh[0.5132928614530164 z] + 0.5934823341977118 Sinh[0.5132928614530164 z] And ...
0
votes
1answer
53 views

List manipulation performance or how to make independent list copy

I have a task to solve some system of equations with NSolve and print graph of it, depends on parameters. Something like this (maybe it is not a good example and does not always have a solution, but ...
0
votes
1answer
94 views

Solve ${\rm BinomialDistribution}(x;\,n_1,\,p_1) = {\rm BinomialDistribution}(a-x;\,n_2,\,p_2)$ in terms of $x$ [closed]

I'm totally a novice with Wolfram software, so please forgive me if the question is nonsense. I want to solve the following equation in terms of $x$: $\quad \quad {\rm ...
7
votes
3answers
470 views

Implement the Bisection algorithm elegantly and easily

Description: Rencently, I have finished my course Numerical Analysis, so I'd like to implement many algorithm that I have learned from that course.By this practice, I hope that I can improve my ...
1
vote
1answer
246 views

Marking the points of x-intercept on a plot

OK, I have a nice plot of some oscillating motion. I can read some stuff off the graph, but I thought it would be cool to show a dot where the curve hits the x-axis and a little label showing the ...
1
vote
2answers
70 views

Substituting solution into the equation

I need to solve 6*6 equations over and over and put the coefficient into the equations again. But I don not know how? Can anyone help me? ...
3
votes
3answers
1k views

Implementing Newton's method

I have this question on coding Newton's method in Mathematica. I have some code to go by but I have no clue if it's computing the functions in the right order. The book is the numerical methods ...
4
votes
1answer
141 views

How to solve a conditional inequality?

I am trying to use Mathematica to solve a conditional inequality. Find all (real) numbers $a$ and $b$ such that $|a| + |b| \ge 2/ \sqrt{3}$ and for any real $x$ the inequality $ |a\sin x + b \sin ...
0
votes
1answer
103 views

Manipulate Solve

I have seen similar questions and answers but it did not help me. I would like to see effects of three constants in equations resulted from solve command. conditions are ...
4
votes
0answers
98 views

Synchrotron Radiation and ListDensityPlot

I'm trying to reproduce this plots: For this task i'm following this blog entry: Synchrotron radiation As you can see there, the task is to make a DensityPlot of a vector field essentially. This ...
1
vote
0answers
102 views

How can I improve the solution of my PDE?

I want to improve the last code to find a better solution for umi. For now I'm using only MaxStepFraction. Also, when I put no ...
1
vote
3answers
120 views

NSolve returning an empty set

Dear Mathematica experts. I am a chemist looking to use Mathematica to solve a system of equilibrium equations. I have a system of 8 polynomial (I think) equations with 8 unknowns, yet when I use ...
2
votes
3answers
168 views

When NSolve fails due to a differential situation?

c = 1.1111; y[x_] = x - c Sin[x] NSolve[y[x] == 0, x] The method has procured no result. Successive derivatives were plotted in an attempt to fix the problem. ...
3
votes
3answers
309 views

Finding intersections of two parametric curves

I am dealing with the root finding of two parametric data curves (data below). I have already checked Parametric Interpolation of 2D data, which I found useful for plotting, though it is not adequate ...
0
votes
1answer
99 views

Solve seems broken after I installed the package Tomatlab.m

After I downloaded the Mathematica package ToMatlab.m, Solve does not work as before: ...
3
votes
3answers
274 views
0
votes
0answers
37 views

NSolve running for ever

I have troubles running NSolve for my physics problem. I am new to Mathematica, which is why I might be missing some key solutions. I have the following function with the variables: ...
1
vote
0answers
70 views

Solution Branch Switching of Quartic

Im using a closed form solution for quartic equation. In the quartic equation, there are parameters that are being varied and therefore the solution changes depending on these parameters. The ...
3
votes
0answers
195 views

Nonlinear FEM and FindRoot

I'm trying to develop a kind of nonlinear FEM application using mathematica to solve a bvp like the following: $$ \gamma(u') ~u^{iv} + 2 \gamma'(u') u''' u''+ u''^3 = f(x) $$ where $u = ...
0
votes
2answers
47 views

Selecting the maximum value from the results returned by NSolve

I'm trying to select the maximum value from the answers Mathematica 7.0 is getting from a simple basic NSolve algebric equation : ...
0
votes
1answer
91 views

A question about calculus and Programming

I am a very new user and I would like to know how to calculate the following operations in Mathematica. Honestly this is not a homework. I am an french architect and I would like to be back in Math ...
0
votes
1answer
49 views

using FindRoot to solve 3 simultaneous equations [closed]

I'm trying to solve 3 simultaneous equations derived from an electrical circuit of a common source amplifier. ...
-2
votes
1answer
64 views

Sign of a symbolic expression as a function of parameter values

I need to know the sign of the following expression for p[t] = z/(1-a), as a function of the parameters {a, b, c, z}: ...
1
vote
1answer
112 views

Hill function (equation) vs a gene

So im trying to make one equation equal another to solve for all physically realistic values of $X$. Hill function is: $$ F(X)=\frac{1}{1+(\frac{X}{K})^n} $$ and Gene Z equation is: $$ Z(X) = ...
0
votes
0answers
55 views

NSolve can not handle a PolyGamma equation

I would like to solve the following equations numerically: ...
1
vote
1answer
69 views

Trying to find solution for system of ordinary differential Equations [closed]

I've got 2 functions: A'[t] = (0.5/(1 + (B/k1)^n)) - 0.2*A B'[t] = (1/(1 + (A/k2)^n)) - 2*B with conditions of ...