Questions tagged [equation-solving]

763 questions
0
votes
1 answer

Javascript and php-Solving system of equations with one unknown variable

I'm looking for a javascript or php-script that is able to solve a system of equations with one unknown variable x. The equation can be of any kind, i.e. linear, quadratic, cubic etc. e.g. 10-2*x = 25*x or 12*sin(x³) = ln(x²) or e^x² = x^5 I hope…
enne87
  • 2,221
  • 8
  • 32
  • 61
0
votes
0 answers

Finding ALL solutions numerically to a set of polynomial solutions

I have about 20 polynomial equations in about 20 variables, 15 equations are linear function and the rest of like degree 5. I would like to find all real solutions to those (Because it's polynomials I expect this to be possible). I only want numeric…
0
votes
0 answers

Can I solve a 4th order polynomial in R?

I wish to predict leaf temperature (TL) from other variables. The energy balance equation I have developed, simplified, is A = BTL^4 + CTL + D Is there any way to solve for TL so I have an equation of the form "TL=...", preferably using an R-based…
0
votes
0 answers

Sympy linsolve and solve giving different results

I have a system of 52 equations with float coefficients (usually not rationals). This long list of equations is stored in variable concrete_eqs, and the list of unknowns (Lagrangians) in lagran. The system is linear. Using solve, the solution would…
econbernardo
  • 98
  • 1
  • 7
0
votes
1 answer

Solving a non-linear system of three equations (MATLAB)

I am trying to solve the following system of equations: {a*[1+b*(5+c)]}^(-1/2) = 2388; {a*[1+b*(5+c)]}^(-1/2) = 2633; {a*[1+b*(5+c)]}^(-1/2) = 2763; for which I need to get the values of a, b and c. Can anyone advise on how to proceed? I'm not sure…
0
votes
1 answer

How to rearrange for a variable with SymPy

I have a complex equation that I would like to rearrange for a variable vz(t) = .... What is the most elegant way in SymPy ? I have determined the upper equation as a solution of an ODE: import sympy as sym sym.init_printing() t,m,k,g,v0,psi =…
ingenium
  • 17
  • 1
  • 8
0
votes
1 answer

Is there way to find a solution/Approximate the value of P in this equation in R-studio

ln(16.1)=ln(16.1+P)(0.81+p)+ln(15.1+P)(0.144)+ln(14.1+P)(0.0064)+ln(8.1+P)(0.0032)+ln(2.1+P)(0.0004+p) What I am trying to do is find P (capital) for a given value p (lower-case). Is there any way to find a solution or approximate value (if it's…
Melvin
  • 9
0
votes
0 answers

Matrix equation solving in Matlab

Motivation: I have to iteratively determine transfer functions of a system depending on its parameters. From the block diagram, I know the matrix equations and now have to combine and solve them to obtain the transfer function. The system is not…
Geralt von Riva
  • 324
  • 3
  • 16
0
votes
1 answer

Best approach for solving equation with truncations in Python

I am trying to solve an equation that can include truncations in Python with a numerical approach. I am wondering what the best library and approach would be? Following is more detail about the problem: The equation changes every time. From a human…
0
votes
2 answers

Array input into an equation get array output in Python

I'm a python beginner and I'm trying to solve a cubic equation with two independent variables and one dependent variable. Here is the equation, which I am trying to solve for v: 3pv^3−(p+8t)v^2+9v−3=0 If I set p and t as individual values, I can…
0
votes
2 answers

R: Solving for a variable (using the uniroot function)

I am rather new to R and really could need the help of the community with the following problem. I am trying to solve for the variable r in the following equation: (EPS2 + r*DPS1-EPS1)/r^2)-PRC. Here is my (unsuccessful) attempt on solving the…
0
votes
1 answer

How to solve an equation in Python 3 with Sympy?

I new with Python and much more with Sympy, I'm trying to solve an equation; the user introduces the equation and the value of 'x'. Example: eq: x**2+x*3+1, x = 4, so the 4 should be replaced on the 'x' of the equation and calculate the result. This…
Daniel
  • 147
  • 1
  • 7
  • 19
0
votes
0 answers

How can I substitute constants into this set of equations? (Mathematica)

I'm new to Mathematica and I'm trying to solve this set of trig equations (I'm not exactly sure if the syntax looks correct): Solve[Tan[(delta + beta)/2] == nz*Tan[theta/2] && ny*Tan[(delta - beta)/2] == nx && Cos[(delta +…
ZR-
  • 809
  • 1
  • 4
  • 12
0
votes
0 answers

Error solving an equation: TypeError: loop of ufunc does not support argument 0 of type Add which has no callable sqrt method

I want to solve an equation using sympy but I'm failing. The general syntax of the code worked before, its just failing with this equation. The equation Av_pv is only defined between 0 and 1, but all given variables keep it in this interval. The…
0
votes
1 answer

Why I can't solve these equations using some specific parameters? (Sympy)

Here's the code with equations I'm trying to solve using sympy: # Import sympy from math import remainder, tau from sympy import * from sympy.solvers import solve # Define the parameters nx, ny, nz = [0,0,1] a,b,c = [0,0,0] d = 1 t = 9 # Solve the…
ZR-
  • 809
  • 1
  • 4
  • 12