Questions tagged [equation-solving]

763 questions
-1
votes
1 answer

Solving large system of non linear equations

I'm trying to solve a system of 30 non linear equations (unknown variables sit inside exponential functions). I have exactly 30 variables and 30 unknowns. I'm trying to use scipy.optimize.fsolve but it is essentially not doing anything. I'll post my…
CStarAlgebra
  • 197
  • 2
  • 10
-1
votes
1 answer

scipy.optimize.root returning incorrect solution

I am trying to solve a system of simultaneous equations as follows: "145.0x/21025 = -0.334" "(-48.402x-96.650y+96.650z)/21025 = -0.334" "(-48.402x+132.070y+35.214z)/21025 = -0.334" "sqrt(x^2+y^2+z^2) = 145.0" I am using the following Python…
-1
votes
1 answer

Algebra formula needed! Calculate a charge price to compensate for a fee

So this is really stumping me, and I think it should just be a linear equation. Suppose I am charging my client $1000 for a good or service. The client wants to charge this to their credit card. I use Square as my payment processor, and they take a…
Aaron
  • 9
  • 2
-1
votes
1 answer

How can use Microsoft Oslo Library for solve stiff equations?

which phrase in Microsoft Oslo Library can solve the Stiff ordinary differential Equations? is there another way to solve them at all?
Mahan M.
  • 11
  • 3
-1
votes
1 answer

Simplify solution for Symbolic solver for system of equations in Python (with symbolic output)

I have the following system of equations : -2yz = a -2xy = b -x^2 + y^2 - z^2 = c How can I simplify the solution for these equations using SymPy? x, y, z are unknowns. I have the following script: from sympy import * x, y, z = var('x y z') a, b,…
QuestionMark
  • 412
  • 1
  • 4
  • 16
-1
votes
1 answer

Numerical and analytical equation solving in python or matlab

Let's suppose that I have two transcendental functions f(x, y) = 0 and g(a, b) = 0. a and b depend on y, so if I could solve the first equation analytically for y, y = f(x), I could have the second function depending only on x and thus solving it…
Frank
  • 81
  • 1
  • 9
-1
votes
2 answers

Ruby and math module to solve trig functions

So I'm trying to practice using Ruby to solve trig functions and I'm having some difficulty getting the Math library to work. The trig function is: y = (x^3 sqrt(2x^2)) / (sin(x+5)) where x = 51, and the answer needs to be in degrees. The problem is…
Sam Lim
  • 197
  • 15
-1
votes
2 answers

How can I solve an implicit equation without the symbolic toolbox?

I have an equation like this: (5+x)^2/15+(x-4)^2/10=100 Can MATLAB solve this equation directly, without having access to the symbolic toolbox? If it can not do this, how can I resolve this problem?
voo
  • 9
  • 6
-1
votes
1 answer

How to Solve Equation Involving Subject of Formular In Matlab

I have an expression that I want to evaluate in MATLAB. This is a part of automatic control computation and each time I need to compute a theta(t) value which has a relationship as shown below: My objective is to evaluate the left-hand side…
Olatunji
  • 59
  • 5
-1
votes
2 answers

How to solve the equation sum{max(a_i, x)}=y with variable x? Is there any algorithm with O(n) time complexity?

I am trying to find an algorithm to solve the following equation: ∑ max(ai, x) = y in which the ai are constants and x is the variable. I can find an algorithm with O(n log n) time complexity as follows: First of all, sort the ai in O(n log n)…
MinG
  • 57
  • 9
-1
votes
1 answer

Solving system of linear equations

My goal is to solve the system of equation known as Lyapunov equation, that is finding x in the following equation: A*X + X*transpose(A) +Q = 0 plus another linear constraint that is X*v = 0 where all matrices A, X ,Q are n by n matrices and v is a…
solver
  • 1
-1
votes
2 answers

How to solve nth degree equation in php?

How to solve nth degree equations in PHP Example: 1/(1+i)+1/(1+i)2+...1/(1+i)n=k While k is the constant,I'd like to find value of i. How can I achieve this in PHP?
user3797053
  • 497
  • 1
  • 8
  • 18
-1
votes
1 answer

Sympy can graph the function but cannot find the obvious root

I have a function in sympy which is quite ugly: In [79]: print(expected_c) Out[79]: 2**(n - 2)*n*(n - 1)*binomial(m, n)*factorial(m - 3/2)*factorial(m - n)/(binomial(2*m, n)*factorial(m - n/2)*factorial(m - n/2 - 1/2)) I want to solve it for some…
Cédric Van Rompay
  • 2,489
  • 1
  • 18
  • 24
-1
votes
1 answer

Get value of x from equation stored in string

How can I get value of x from string equation using c#. string eq = sin(x) = 5x-2"" eq = "x=(1/5)*(sin(x)+2)" Is it even possible?
Bilal
  • 558
  • 8
  • 18
-1
votes
1 answer

How to solve an equation with two variables in python

So, I want to solve an equation z with two variables (x and y having 50 values each, for example). I want to calculate something like: import numpy as np x = np.linspace(0, 50, 51) y = np.linspace(100, 150, 51) z=y-x print z with…
Mac
  • 991
  • 3
  • 11
  • 22