Questions tagged [equation-solving]

763 questions
0
votes
1 answer

Python Matrix solving {A}[x] = [B] where parts of x and B are known

In python it is possible to solve {A}[x]=[B] where A is a known matrix, B a known vector and x an unknown vector. But is it possible to solve {A}[x]=[B] if A is a know 3x3 matrix, x = [V1 5 V3] and B = [0 I2 0] ? Thank you very much for your help.
Anthony Lethuillier
  • 1,489
  • 4
  • 15
  • 33
0
votes
1 answer

Solving for unknowns

import numpy as np import scipy from scipy.optimize import newton import sympy from sympy import diff from sympy import Symbol alpha = Symbol('alpha') beta = Symbol('beta') delta = Symbol('delta') kss = ((((1/beta)+ alpha * delta - 1)/(1-alpha))…
thegodfather
  • 61
  • 1
  • 4
0
votes
1 answer

Two equations two unknowns, non-linear Mathematica

I am having trouble obtaining values using the NSolve or Solve features in Mathematica for two non-linear equations in two unknowns. I am sure there must be a method to go about this, but am not sure what it is. Here is where I encounter the…
0
votes
0 answers

Solving mixed linear and differential systems of equations with R

In R, solve will solve systems of linear equations and ode can solve initial value problem differential equations. I've got a system of equations that I can't figure out how to fit into either. Can someone show me how it's solved? I asked earlier…
0
votes
3 answers

What is the fastest way to find the value of x for the given statement ?

All I know is that a single integer will surely accept it. The equation is like : Ax^5 + Bx^3 + Cx^2 = D I tried to brute force value of x , but was getting TLE , can I use an optimised binary search as I know only one root will be real?
0
votes
1 answer

solving equations in sas

Is there a function in sas 9.4 similar to solve function in matlab that I can use for solving equations: syms x sig1 sig2 mu1 mu2; solve(1/sig1/sqrt(2*pi) * exp(-1/2*((x-mu1)/sig1)^2) == 1/sig2/sqrt(2*pi) * exp(-1/2*((x-mu2)/sig2)^2), x) Or what…
user27241
  • 201
  • 3
  • 10
0
votes
1 answer

Numerical solutions of a nonlinear equation with different independent values in matlab

For example, if I have this function: g = t^3 - 5*t^2 + 2 And g = [3 4 6 2 9 10 17 1] I would like to solve the equation for each g[i] and obtain the resulting t vector.
0
votes
1 answer

Calculate equation from .csv file input and plot result over barplot

I coulnd't found any post with a related subject. I actually don't know if its posible. So I have my. csv file: Periodo;Teorico;Real;F1;F2;F3 20140101;50;20;7;7;16 20140108;55;29;11;5;5 20140115;52;21,4;8,6;10;12 20140122;66;32;9;8;17 I asign it to…
0
votes
0 answers

Solve finds wrong solution?

I have this equation in x and y: (x + y)^(1/2) - 6*y*(x + y)^5 - (x + y)^6 + (x - 1)/(2*(x + y)^(1/2)) = 0. Now I call the solver: R_c = @(y)solve((x + y)^(1/2) - 6*y*(x + y)^5 - (x + y)^6 + (x - 1)/(2*(x + y)^(1/2)), x, 'Real', true); which…
tw-S
  • 579
  • 1
  • 5
  • 23
0
votes
1 answer

Matlab Solve(): Not giving all the solutions

I am trying to find intersection points of two curves syms x y g(x) = 20*(exp(-(x+30)/3.5)-1); [sol_x, sol_y] = solve((x+22.3097)^2+(y+16.2497)^2 == 25, y == g(x),x,y,'Real',true) ; It is giving only one solution. But according to the plot of the…
Ankush
  • 235
  • 3
  • 14
0
votes
1 answer

Overlayed angled axis limits

First off, this isn't as much of a programming question (syntax and such), as it is just me trying to figure out an issue). So I apologize if this isn't the right area, or even the right site. For record, this is being calculated in php, with data…
0
votes
0 answers

Mathematica solving complex equation

If I have a complex equation in the form of Solve[z^2 + 9 - 1.5 E^[-tz]==0, z] where z = x + I y where x , y and t are all assumed to be real. How do I tell Mathematica 9 to separate the real and imaginary parts to make two equations in…
Zbigniew
  • 101
  • 5
0
votes
1 answer

sympy: solving for functions results in terms of other functions

I have this system of equations in sympy: m1, m2 = symbols('m1, m2', real=True, positive=True) t0, t = symbols('t0 t', real=True, positive=True) p1, p2, v1, v2, a1, a2, f1, f2 = symbols('p1 p2 v1 v2 a1 a2 f1 f2', cls=Function) G = 6.67384e-11 eq1…
Elektito
  • 3,863
  • 8
  • 42
  • 72
0
votes
0 answers

Optimzation non-linear equation solver matlab

I essentially have a 28-parameter non-linear equation. when f(x) = 0, I can measure 14 parameters and I have data to generate 133 equations with the varying 14 measured parameters. I now need to find the values of the 14 unknown parameters…
FunkDoc
  • 21
  • 1
  • 2
0
votes
1 answer

Cubic Equations in Javascript

I am trying to create a "cubic equations resolver app" in Javascript and I have a piece of code doing that in Matlab. It requires using complex numbers and i know that Javascript can't handle such numbers by itself so I use the MathJS library. I am…