# Tagged Questions

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

99 views

80 views

### Is there a way to have FindInstance or Solve give only positive integer solutions?

I keep getting either negative or super long answers or super long negative answers in no particular order :\ ... Is there a way to only ask for positive solutions? (here we want 0 < x<(10^12+y) ...
126 views

### How to find Pauli matrices

I wanted to find the Pauli matrices, so i wrote down this code: z = {{a, b}, {c, d}} i = {{1, 0}, {0, 1}} Solve[z.z == i, {a, b, c, d}] and mathematica gave me ...
91 views

### How to create a line due to requiriements?

Considering we have three lines, and know the intersection points (How to find intersection points of lines?) How can I draw a line that will cross the intersection point of the two lines and will be ...
3k views

### How to find intersection points of lines?

Considering I have three functions f1 = -x + 1; f2 = x - 1; f3 = x + 3; How can I find the intersection points of this functions? Thanks. This didn't work <...
259 views

### How to solve a large system of non-linear equations

I would like to solve Saha equations on Fe, which have 27 unknowns. Saha equations basically give you the ratios of the unknowns, but the unknowns are subject to constraints. What function shall I ...
265 views

### Solve a system of parametric equations

I have a system of parametric equations (with a total number of 8). I tried to solve this system by using Solve. I have not received an answer after about 4 hours! ...
109 views

### How to extract a solution

Is there any way to get the actual number from this? NSolve[x^2 - 5 y^2 == 1, {x, y}, Integers][[1]][[1]] instead of ...
562 views

### Solving Symbolically Equations with Vectors and Matrices [closed]

I want to solve equations with vector variables and vector/matrix parameters symbolically. As a basic example I would like to be able to solve something like $[I-aG]x=b$ where $a,b \in \mathbb{R}^l$ ...
64 views

### NSolve can not handle a PolyGamma equation

I would like to solve the following equations numerically: ...
106 views

### Mathematica reading my mind - Solve knows which variable to solve for

I was checking some of my algebra with the following code; ...
107 views

### How to put a condition in 3d plotting

I have the following plotting question: First I want to have 3D plot of Alpha respect to different values of p and l when we ...
137 views

### WhenEvent for space variable

Can I use WhenEvent for space variable? For example ...
116 views

### How to get a 3D plot of from the the solutions of function [closed]

I have the following equation: (1 - x)^2 + T^2/((f[x] - L)*(f[x] - L - 2*T))*(P/(N-R+S)) == 0 f[x] = (x*r*(T + L) - T)/((x*r) - 1) ...
163 views

### Plotting results of a NSolve problem

I am calculating, numerically, the zeros of a determinant. a1 and a2 are constants, q is a parameter. I would like to vary q and find the roots w as a function of q and plot roots w vs. q. All ...
345 views

### How to write Newton-Raphson module and return a value?

I am writing a code which solve nonlinear algebraic systems via Newton-Raphson algorithm. I want to make a Newton Module with another file and use the Module in my test file, but i didn't achieve it. ...
354 views

### Does NRoots own an abstract counterpart? If not, can we write one?

We know when solving linear algebra equations, despite its abstract syntax, LinearSolve is much faster compared to Solve: ...
507 views

### How to solve the equation $A \sin x + B \cos x = 0$ for all $x$?

I have the equation: $A \sin x + B \cos[x] = 0$ that should be satisfied for all the $x$. Of course, the solution is obvious: $A=B=0$, but I need Mathematica to resolve it automatically because this ...
205 views

### How do I get all the roots within a certain range for an equation? [duplicate]

I wish to find ALL the roots of the following equation $x \tan(ax) - c = 0$ within a range, where a and c are constants I control. I've been using ...
245 views

### NSolve fails to solve a nonlinear equation

Mathematica can not solve this: g = 9.82; ω = 0.5; h = 5; y0 = 1; v = 0; τ = 0; NSolve[h + v t - (g t^2)/2 == y0 Sin[ω t], t]; The error code is: NSolve::...
216 views

166 views

### Plotting an extremly large output

I'm trying to plot the solutions of this determinant: ...
241 views

### How to merge permutations obtained from Solve on multiple variables?

When I compute the following expression to find integer solutions of the equation (x^2 + y^2 + z^2 == 14^2) ...
83 views

### How to solve these equations by Mathematica?

l tried it with Solve,DSolve and NDSolve functions,but all failed.Should l simplify the equations in the papers or use other mathematica functions.Thanks~
248 views

### NSolve & PrecisionGoal

I am using NSolve to find numerical solutions of a particular equation. I do not need the solutions to as high of a precision as the other numbers in my notebook. To improve run time (I am iterating ...
238 views

### NDSolve with initial condition: initial conditions did not evaluate to an array of numbers of depth 1(for 1D) or 2 (for 2D) on spatial grid

I have the following naive code to solve a PDE in two spatial dimensions (x,y) with periodic boundary conditions: ...