Questions tagged [equation-solving]
763 questions
1
vote
2 answers
MATLAB symbolically solve a system in logarithms -- Why does the solver fail to find a solution?
I'm trying to symbolically solve a system of equations in logarithms (so the estimated coefficients are elasticities), but matlab is tells me an "Explicit solution could not be found." Any ideas why?
syms a1 a2 b1 c1 c2 e1 e2 S1 D1 P1 S2 D2 P2…

Trevor
- 181
- 1
- 7
1
vote
2 answers
solving nonlinear equations
I want to solve two nonlinear equations in MATLAB so i did the following:
part of my script
c=[A\u;A\v];
% parts of code are omitted.
x0=[1;1];
sol= fsolve(@myfunc,x0);
the myfunc function is as follows
function F = myfunc(x)
F=[…

HforHisham
- 1,914
- 1
- 22
- 34
1
vote
0 answers
Mistake in using gsl_multiroot_fsolver
I am a very bad programmer, so beware of the high probability that I have done a very stupid mistake. I am writing C and using gsl_multiroot_fsolver_hybrid wrong, any help will be much apprteciated!
My code contains the following two functions:
/*…

Ludi
- 451
- 4
- 17
1
vote
1 answer
Solving a system of equations using Python/Scipy for a set of measurements
I have an physical instrument of measurement (force platform with load cells) which gives me three values, A, B and C. It happens, though, that these values - that should be orthogonal - actually are somewhat coupled, due to physical characteristics…

heltonbiker
- 26,657
- 28
- 137
- 252
1
vote
1 answer
Set VBA macro for Excel to run a series of Linear Equations by taking variable from several rows?
I've got a set of equations which I'd like to be repeated taking variables from the next row down for each of the columns at which each variable is located. I am a beginner, so my coding is probably not to scratch:
Sub Iteration()
Dim al, ab, ae As…

user1769265
- 11
- 2
1
vote
3 answers
Solving a system of linear equations using Lapack's dgesv
I want to solve a linear equation system using the Lapack package in C++.
I plan to implement it like this using the routines from here, namely dgesv.
This is my code:
unsigned short int n=profentries.size();
double **A, *b, *x;
A= new…

bogus
- 867
- 6
- 14
- 24
1
vote
2 answers
Writing INTEGRATOR similar to http://integrals.wolfram.com/index.jsp using parsing in java
Hi as part of my project I have been working on evaluation of arithmetic expression using reg-ex in java.
expressions are like this : 2+3/4(5+7)
first I will modify it to this : 2+3/4*(5+7)
and convert it to postfix
postfix: 23457+*/+
The…

Max
- 9,100
- 25
- 72
- 109
1
vote
2 answers
Compute real roots of a quadratic equation in Pascal
I am trying to solve this problem :
(Write a program to compute the real roots of a quadratic equation (ax2 + bx + c = 0). The roots can be calculated using the following formulae:
x1 = (-b + sqrt(b2 - 4ac))/2a
and
x2 = (-b - sqrt(b2 - 4ac))/2a
I…

Waleed
- 31
- 1
- 1
- 4
1
vote
2 answers
How to learn these matlab statements?
I've been informed what statements we need to know and here are my answers to what they do. Please correct me if I'm mistaken somewhere and please tell me how I learn more advanced statement that I might need e.g. the .* and .^ for element-wise…

Niklas Rosencrantz
- 25,640
- 75
- 229
- 424
1
vote
2 answers
Triangulating coordinates with an equation
Ok, I know this sounds really daft to be asking here, but it is programming related.
I'm working on a game, and I'm thinking of implementing a system that allows users to triangulate their 3D coordinates to locate something (eg for a task).
I also…

Pharap
- 3,826
- 5
- 37
- 51
1
vote
1 answer
Solve Equations from Equations Mathematica
Well, I need a way to solve equations by another var got from other equation in Mathematica 8. Example:
a + b = 2c
c + 2 = d
d = 2b
It will chose the best equation for the given values and solve the rest.
With some given values, like a = 1 and c =…

Odinfall
- 11
- 3
0
votes
3 answers
Solving nonalgebraic equations
How can I solve an equation such as
(1/5)^x - 4x = 0
using Matlab?

gruber
- 28,739
- 35
- 124
- 216
0
votes
2 answers
Anagram solving error python
I have written an anagram solving algorithm, which does not work.
for word in wordlist: #Checking for equal length
if sorted(word.replace("\n", "")) == sorted(anagram):
possible.append(word)
I needed to use len(word) - 1 to take away…

user1149589
- 243
- 3
- 11
0
votes
7 answers
Solving a difficult equation with two variables in Java
My assignment says to do the following:
Search2: Search for a solution to x*x + y*y - 12x -10y + 36 = 0. Search from 0 to 10 in both x and y, searching every y value before moving to the next x. Print the first three solutions found. (Note - a…

Vaughn Simon
- 45
- 1
- 8
0
votes
1 answer
How can I obtain all possible solutions for an underdetermined system of linear equations in Python?
I was interested in obtaining all possible solutions for a under-determined linear problem in Python. To be more specific, let us assume we have only one equation, several variables and we want to solve it in the positive integers. This can be…