Questions tagged [equation-solving]

763 questions
2
votes
2 answers

Finding the odd point in a dataset without using loops

I am given a set of points (p1,q1) (p2,q2) ... (p20,q20) which satisfy the function q = 1/(ap + b)^2 except that one of these does not satisfy the given relation. The values of a and b are not given to me. All I have with me is two inputs p and q as…
MaxFrost
  • 217
  • 1
  • 6
2
votes
2 answers

Trying to Convert Excel Equation to C#

I've got this Excel equation and I'm struggling to convert it into c#. The "to the power of" and "log" parts are tripping me up. The excel equation is as…
Bad Dub
  • 1,503
  • 2
  • 22
  • 52
2
votes
2 answers

Solving a linear system of equations

I am working on using the finite element method to calculate heat flow through elements. I'm currently stuck on solving a system of equations where there is variables on both side of the equality. A simple example could be something like this | 1 …
2
votes
1 answer

What is the best way to solve a system of linear equations with infinite solutions?

I want to solve a system of linear equations (SLE, Ax=b, where A consists out of 8 rows and columns) but this system will always have infinite solutions. Many people refer to Eigen, when it comes down to solving system of linear equations. However,…
2
votes
3 answers

Eliminate a variable to relate two functions in Python using SymPy

I have two equations that are parametrized by a variable "t". These look like: X = p(t) Y = q(t) where p and q are polynomials in t. I want to use Python's SymPy library to eliminate the t variable and express Y = F(X) for some function X. I have…
2
votes
1 answer

Translating chemical equations from article, results differ (Matlab)

I've been trying to translate a set of chemical equations to MATLAB code, to be able to solve for different chemical species. I have the approximate solution (as it's from a graph) but after entering all the data and checking multiple times I still…
Bob van de Voort
  • 211
  • 1
  • 11
2
votes
1 answer

How can I solve exponential equation in Maxima CAS

I have function in Maxima CAS : f(t) := (2*exp(2*%i*%pi*t) - exp(4*%pi*t*%i))/4; here: t is a real number between 0 and 1 function should give a point on the boundary of main cardioid of Mandelbrot set How can I solve equation…
Adam
  • 1,254
  • 12
  • 25
2
votes
1 answer

Model complex equation in R

I have the following model: which I've coded in R as: function(t,C,Ao,s,wd,ph) C + Ao * exp(-s*t) * cos(wd*t + ph) I want to use this equation to form a predictive model. However, I can't figure out how to either successfully run or plot this…
2
votes
0 answers

Cannot get SageMath to solve simultaneous equations

I will provide some context on the problem if necessary. I've thought about this problem, but cannot seem to see why SageMath wont solve it. I am asking this question here as I think it has more a place here than the mathematics StackExchange. When…
Patrick Lewis
  • 83
  • 1
  • 1
  • 10
2
votes
4 answers

Haskell equation solving in the real numbers

I've just started playing with GHCi. I see that list generators basically solve an equation within a given set: Prelude> [x | x <- [1..20], x^2 == 4] [2] (finds only one root, as expected) Now, why can't I solve equations with results in ℝ, given…
PJK
  • 2,082
  • 3
  • 17
  • 28
2
votes
0 answers

Solving a system of equations in R

I want to solve the following system of equations for b,c and d: 1 = b² + 6bd + 2c² + 15d² 1.75 = 2c(b² + 24bd + 105d² +2) 3.75 = d²(12 + 48bd + 141c² + d²) Is there a general way to solve such systems of equations in R?
T.abc
  • 21
  • 2
2
votes
3 answers

Why does scipy.optimize.root call the callback function with the initial value four times?

I am playing around with scipy.optimize.root and I am trying to understand what it does and how it works. My sample code is as follows: import numpy as np from scipy.optimize import root def func(x): """ test function x + 2 * np.cos(x) = 0…
ThomasS
  • 31
  • 2
2
votes
2 answers

How to solve a matrix equation in R

My friend and I (both non-R experts) are trying to solve a matrix equation in R. We have matrix y which is defined by: …
R.girls
  • 23
  • 4
2
votes
4 answers

Why is (a and (not b)) or (a and b) = a?

I reached the end of a pretty long Boolean simplification, where I was supposed to prove that something = a. I reached a point (a and (not b)) or (a and b). Any further reorganization of the equation did not bring me further. But using a Truth tabel…
2
votes
1 answer

finding solutions in matlab within interval for multiple variables

I have a code in matlab with a system of 6 equations and 6 variables. I want to solve the equations using the command vpasolve. the 6 variables are t11,t12,t13,t21,t22,t23. Is there a way to define a range for the solution for each of the 6…
David
  • 481
  • 3
  • 13