Questions tagged [equation-solving]
763 questions
0
votes
0 answers
Dsolve diff. and sin function as symbolic equation
I am looking for a way to solve the following differential equation by MATLAB:
Y=-acc*h*cos(t) + g*h*sin(t) - gama*T.'*H*cos(t)-I0*diff(t,2)
X=solve(Y==0,t)
and the parameters defined as:
g=9.81; c=0.03; w=0.05; acc=0.5*g; gama=0.05;
syms t(x) h b…

saf
- 1
0
votes
1 answer
solving a sparse non linear system of equations using scipy.optimize.root
I want to solve the following non-linear system of equations.
Notes
the dot between a_k and x represents dot product.
the 0 in the first equation represents 0 vector and 0 in the second equation is scaler 0
all the matrices are sparse if that…

Kid Charlamagne
- 558
- 1
- 10
- 27
0
votes
1 answer
matrix extension in netlogo for system of equations
I have two agents, distributers and suppliers. Each of these turtles have a number of variables which some of them are defined global to be able to be assigned to agents of another type. The question is that I am trying to solve a system of…

Naha
- 15
- 4
0
votes
1 answer
Non-linear system of 9 equations 9 unknowns MATLAB - unknowns coupled in polynomial ratio
Goal
I want to solve a system of 9 non-linear equation with 9 unknowns with solve Matlab.
All 9 unknowns are coupled as a ration of polynoms (see myfun…

Nico
- 11
- 1
0
votes
4 answers
Finding a number lucky or not
I'm trying to solve a problem from hacker rank over here.
The question is:
So to solve this, I tried with a simple maths equation:
4x + 7y = lucky_number
For example, to check 15 is a lucky_number or not, I could do start with x, y values 0 and…

batman
- 3,565
- 5
- 20
- 41
0
votes
1 answer
Detecting zero in solution of linear system of equations (Ax=b)
Suppose the following system of equations Ax = b with:
> A <- matrix(c(2,0,-1,0,0,2,2,1,-1,2,0,0,0,1,0,0), ncol = 4)
> A
[,1] [,2] [,3] [,4]
[1,] 2 0 -1 0
[2,] 0 2 2 1
[3,] -1 2 0 0
[4,] 0 1 0 0
>…

Davor Josipovic
- 5,296
- 1
- 39
- 57
0
votes
1 answer
How to show the result of a symbolic computation as a number?
I am solving an equation symbolically:
% Newton's method
syms x;
F(x)=x-cos(x);
FPrime(x)=diff(F(x));
display(FPrime(x));
x0=input('please give first point[x0] = ');
Accuracy=input('Accuracy[xn-xn-1] = ');
for k=0:15;
x=x0-(F(x0)/FPrime(x0));
…
0
votes
0 answers
How to trim down solutions of this equation
For a final, we were asked to write a program that would find positive integer solutions of the equation x^4 + y^4 + z^4 = kxyz where k is a constant. Solutions were (helpfully) limited to the integers between 1 and 1000. Even so, the brute force…

bendl
- 1,583
- 1
- 18
- 41
0
votes
0 answers
How to solve the equation without rearranging it in PowerShell?
Just want to ask if I have an equation $cost = (($q * 5)/$z - $x) * $q *2.32 + 0.34
If $cost, $z and $xhave the actual value, is there any method to calculate $q without rearranging the eqaution?
Or How to get the new function of $q in terms of the…

rock
- 107
- 5
- 13
0
votes
4 answers
How to optimise my C code to solve quadratic equations in R?
I just wanna know how I can optimize my C code. My program works fine, I tested it with many different values, all is good. However, I'd like to reduce the number of lines and write my program in better quality.
Here's the source code:
#include…

Amine Marzouki
- 41
- 1
- 6
0
votes
1 answer
Control the solving strategy of Z3
So lets assume I have a large Problem to solve in Z3 and if i try to solve it in one take, it would take too much time. So i divide this problem in parts and solve them individually.
As a toy example lets assume that my complex problem is to solve…

Sergey
- 21
- 2
0
votes
1 answer
Solving an equation of one unknown, given as a function
I have a homework assignment and I can't seem to figure out how to do it. I'm given everything except r. I need to use this formula, as it's saved as a function from a previous exercise. The function is:
function t = annuitet( g , T , G , r , n…

David G. R.
- 7
- 4
0
votes
1 answer
empty argument error in rootSolve package in R
I am using rootSolve package in R to solve a system of 6 non-linear equations with 6 unknown variables. Here is my model
model <- function(x, parms) c(F1 = x[1] - parms[1] - 1 / ((-parms[7]) * (1 - x[4])),
F2 = x[2] - parms[2]…

ycenycute
- 688
- 4
- 10
- 20
0
votes
0 answers
How to solve an overdetermined nonlinear set of equations using Matlab
I have following Code in Matlab:
function y = myfun(x)
% Set Variables
Svl=1;
B=54.433;
F=4379.250;
T=21.398;
V=53363.500;
% Computing Prefactors with set variables
…

Dark
- 179
- 2
- 12
0
votes
0 answers
Equalizing lines approximating bezier curve
I have a cubic Bézier curve defined by f(t) where t is in the interval [0..1], and I have approximated the Bézier curve with an n + 1 vertex polyline represented in an array called p, each vertex being p[i] for i in 0..n, where p[i] = f(i /…

markt1964
- 2,638
- 2
- 22
- 54