Tagged Questions
0
votes
1answer
54 views
Collecting roots of different equations and create a list
I solve two equations and have two solutions one by each equation. I want to create list of these roots. Could anyone please help me? Appreciate it.
m02R150 = FindRoot[P1 == 0, {E1, 0.07, 0.1}]
...
4
votes
2answers
120 views
Finding all/most roots of a discontinuous function more consistently?
I have the equation:
f[x_]:=α Tan[α*a] - Sqrt[c - α^2]
and ideally I want to find all of its positive zeros, given a and c, with variable alpha. The problem is ...
5
votes
4answers
475 views
How to find the sum all even numbers of this sequence?
I have a sequence $(u_{n})$
$$u_1= 1, \quad u_2 = 2, \quad u_3 = 3, \quad u_{n}= -u_{n-3} + 3u _{n-2} +2 u_{n-1}, \quad \forall n \geqslant 4.$$
I want to list the first $20$ terms of this sequence ...
7
votes
3answers
286 views
NDSolve and {C, K, Slot} and other built-ins as a variable name
The following problem is an exploration of what causes the error "Input is not an ordinary differential equation" in Mathematica as it seems to have changed from version 8 to version 9.
Specifically ...
11
votes
2answers
436 views
Google Code Jam: Mountain View code review
After participating in Google Code Jam 2012 Round 2, it occurred to me that the Mountain View problem boiled down to solving a set of linear inequalities, which could be done in Mathematica. I've only ...
6
votes
0answers
216 views
MMA implementation of Earth Movers Distance?
Has anyone implemented in MMA the Earth Mover's Distance (EMD)? A concept dating back to Monge 1871, used to compare histograms and images, e.g., the CIEDE2000 Color Difference algorithm. Yossi ...
6
votes
1answer
450 views
Handling failed FindRoot calls
I want to handle FindRoot calls which did not converge (e.g "thrown" error message FindRoot::cvmit)
...
6
votes
2answers
323 views
Very long Refine/Solve batch run - is my code broken, or just complicated?
So I'm trying to run some Mathematica code in batch mode from my university cluster. Specifically, I'm trying to find the equilibria of a system of ordinary differential equations. Inspired by the ...
12
votes
2answers
421 views
Suppressing negative roots in Mathematica
Problem
Using Mathematica's Solve operator can sometimes lead to an output involving a positive and negative root (say when solving for a variable such as ...
30
votes
7answers
840 views
Updating Wagon's FindAllCrossings2D[] function
Stan Wagon's Mathematica in Action (second edition; I haven't read the third edition and I'm hoping to eventually see it), demonstrates a nifty function called ...