Questions tagged [equation-solving]

763 questions
1
vote
1 answer

Scipy equation system with multiple equations

Hello I have a problem using Scipy's fsolve function when I have an equation system. My code only let's me have as much variables as there are equations in my system, but we all know that in practice, you can have more equations than variables,…
johnyboy325
  • 115
  • 9
1
vote
2 answers

Solve A linear equation system b=0 Rstudio

i would solve a linear equation system like this:…
1
vote
2 answers

Finding the root of an equation using iteration

I am attempting to find the root of the equation 3x3+x2-10 using iteration. Here is the code that I have so far, however I don't think I have implemented the while loop correctly since it the equation is currently only evaluated once. Essentially,…
compscistudent
  • 107
  • 1
  • 2
  • 11
1
vote
1 answer

Solving a non-linear equation in python: the answer is the same as initial guess

So I have this complicated equation which I need to solve. I think that finally x should be of order 1E22. But the problem with this code is that it crashes my entire system. Is there a fix? I tried scipy.optimize.root but it doesn't really solve…
Black Jack 21
  • 315
  • 4
  • 19
1
vote
1 answer

Maxima: How can I get a variable as the sum of the function of other variables from a system of equations?

The problem is this; I have a system of equations, which describes the workings of a system. (In this case, an electronic system.) The system has inner variables, as well as input and output variables. What I would want, is to get the output…
1
vote
2 answers

Adding 0 as coefficients in matrixes

I have matrix A with my coefficients, and matrix x with the indices of the variables affected. A <- matrix(c(1,2,-1,2),2,2) x <- rbind(c(1,2), c(3,4)) Each row (on both matrices at the same time) writes an equation. For my example, this would be…
Carrol
  • 1,225
  • 1
  • 16
  • 29
1
vote
1 answer

Finding the root of the function from the list of function values in Maxima CAS

In Maxima CAS I have a list ( here only some values are…
Adam
  • 1,254
  • 12
  • 25
1
vote
1 answer

Solve equation {exponential *prod exponential(ln)}

I want to solve a equation in MATLAB with fsolve I'm trying to do that: function F = root2d(P); lambda = 2*10^-4; th = -40:-1:-106; PL1 = 10471285.480509; % (mw) p1 = 10; p2 = 6 ; p3 = 8 ; al = 2.5; T = 10.^(th./10); r =…
Mardor
  • 11
  • 3
1
vote
1 answer

Python solving system of equations with square root

I've written a function that solves a system of equations, it does however not work when I have a square root in my solutions. The code does work for other equations as long as there are no square roots. I am getting the following error TypeError:…
Rodi
  • 122
  • 8
1
vote
0 answers

Solving coupled heat pde in mathematica

dC1/dt = -(Fp)(L)/Vp*(dC1/dx) - PSg/Vp(C1/Wp-C2) + Dp*(dC1/dx2); dC2/dt = PSg/Visfp(C1/Wp-C2) + Disf*(dC2/dx2); My boundary conditions are: C1(t,x)|x=0 = Cin(t) C2(t,x)|x=0 = 0 Cin(t) is a function of a known form e.g. Cin(t)=…
1
vote
1 answer

solving conic equation for a set of points using Matlab

let's say I have 6 points (x,y)and the general equation for a conic section Ax^2+Bxy+Cy^2+Dx+Ey+F=0. is there a way I can find A,B,C,D,E,F? I know that for a linear equation I can solve this with a matrix but it won't seem to work since all of the…
1
vote
2 answers

Grouping like terms in MATLAB

I'm trying to code a program that solves systems of equations in MATLAB. I was wondering if there is a way to get MATLAB to group like terms and put their coefficients into a matrix? I realize that I can just enter the coefficients in by hand but…
cskwrd
  • 2,803
  • 8
  • 38
  • 51
1
vote
1 answer

Solving complex integrals in R

I would like to solve a double integral in R of the following form: where: b0= function(time){0.05*sin(0.1*time)+0.14} bi=function(time){0.05*sin(0.1*time)+0.12} It is a quite complicated equation and I'm not sure if I am solving it in the proper…
1
vote
2 answers

Solve nonlinear equation in python

I am trying to find the fundamental TE mode of the dielectric waveguide. The way I try to solve it is to compute two function and try to find their intersection on graph. However, I am having trouble get the intersect point on the plot. My…
tsen0406
  • 119
  • 3
  • 4
  • 15
1
vote
0 answers

Different results when solving a system of equations

I've been trying to solve a system of equations in Python and checking the solution in Excel. The python code is as follows: from sympy import Symbol, solvers a = Symbol('a', real=True) b = Symbol('b', real=True) c = Symbol('c', real=True) d =…
jpcgandre
  • 1,487
  • 5
  • 31
  • 55