Questions tagged [equation-solving]
763 questions
0
votes
1 answer
Student stuck on a particular equation solver question
I have to figure out the time taken for one of my inputs to triple using a compound interest equation. The users have to input the expected annual return and the initial stock price, and the code is supposed to spit out the number of years (rounded…

William Lim
- 13
- 3
0
votes
1 answer
Solving for a single (non linear) equation in a for loop with substitution?
I am trying to solve for a single (non linear) equation using fsolve in a for loop, however it doesn't seem to work in my code.
From previous assistance from How to solve nonlinear equations using a for loop in python?
I managed to get this right…

Mat
- 45
- 7
0
votes
2 answers
How to solve nonlinear equations using a for loop in python?
I am trying to solve for non linear equations in python. I have tried using the solver of the Sympy but it doesn't seem to work in a for loop statement. I am tyring to solve for the variable x over a range of inputs [N].
I have attached my code…

Mat
- 45
- 7
0
votes
2 answers
given a line check if a point P(x ,y) falls within 1 meter area around both sides of the line
I have two points A(x1,y1) & B(x2,y2) of a line, I need to check if the third point say C(x3,y3) falls anywhere within 1 meters range on both sides of the line.
So, when AB forms a horizontal line we check in the area 1 meter above and 1 meter below…

rani
- 9
- 2
0
votes
1 answer
Systems and ways to approach a given problem
What are some of the techniques that you seasoned veterans used in order to approach any given problem even if the inputs or the requirements are not known to you? I am currently trying to create a login system in php and I became curious because I…

iiulian8
- 15
- 4
0
votes
1 answer
How to iterate an answer to an equation using known values?
I have no idea how or where to start, I need to have some vocabulary or terms to get going and researching so let's ask the community.
Problem: I have a value X that is the final answer of the equation. I have a range of values, let's say 10 (A-J),…
user14050205
0
votes
1 answer
How to use Python to solve for variable x in summation like Solver in Excel?
I am trying to solve this equation for lambda λ using python.
in that, For i in the index column, P_0, c, t, D, F are given in the dataframe as below:
Given r = constant = 0.6, Excel Solver can solve the equation for lambda easily. But I am new to…

dntt3007
- 1
- 1
0
votes
1 answer
I am newbie in python and doing coding for my physics project which requires to generate a matrix with a variable E
I am newbie in python and doing coding for my physics project which requires to generate a matrix with a variable E for which first element of the matrix has to be solved. Please help me. Thanks in advance.
Here is the part of code
import numpy as…

RISHAV SAGAR
- 83
- 1
- 5
0
votes
0 answers
Python, sympy: A simple set of equations involving repeated powers gives nonsensical (to me!) answers
I am new to both python and the sympy module so some of my code may be a bit 'primitive'. This is also my first use of Stackoverflow so forgive any use errors. I have included an entire test function which can be called using TEST() [this is a…

user10317393
- 1
- 1
0
votes
1 answer
Use VBA to iteratively solve a equation variable
I'm trying to solve "N Factor" of the following equation in VBA:
I have looked for other similar questions and I can't find any with suitable solutions.
I thought an iterative approach to obtain "N Factor" value from an initial value of N would…

giovas
- 1
0
votes
0 answers
Matlab "solve" doesn't give the two roots to equation
I'm trying to solve the Machnumber-Area equation for isentropic flows. This equation has two real positive roots, but I'm not able to get any of these when trying to solve with the "solve" routine.
The code to solve the equation:
gamma = 1.4;
L …

timbjörn
- 39
- 5
0
votes
1 answer
Solving an equation system in terms of an unknown like z, could use some help in matlab or other programming languages
For example I have been given some equations and the solution is asked in terms of y/x = only numbers and z.
w1=-x+w2+w3,
w2=(z^-1)*x+2*w3,
w3=(z^-1)*w2+(z^-1)*y,
y=2*w1
I would like to see the solution to be done like this: (y/x = some equation…

Jangaver 061
- 11
- 2
0
votes
5 answers
Solving a system of equations by brute force within a given range without sympy nor numpy nor matrices, python
I am attempting to create a program to solve a specific system of equations using brute force with python. I solved for one equation and substituted it into the second equation. Variables a through f are given by user input, and I am trying to…

Drkdeibs
- 103
- 1
- 1
- 8
0
votes
1 answer
Really Maxima can't solve this?
I want to get inverse function of this: -0.5*( (%e^(-4*x))*(%e^(2*x)+1
I tried:
ex1: -0.5*( (%e^(-4*x))*(%e^(2*x)+1) );
ex2: ratsimp(ex1);
ex2;
solve([y=ex2],[x]);
But Maxima return empty array.
Really Maxima can't solve this (Wolfram alpha can)…

Данил Черкашин
- 27
- 5
0
votes
0 answers
Tackling variational problem with constraints
I need to minimize (preferably symbolically) functional
F = Integral(f(x)*cos(x)dx)
with constraints:
1)f(x) >= 0
2) Integral(f(x)dx) = 1
3) f(0) = 1
4) f'(x) <= 0
Is there any way to solve problem like this? Could this problem be solved in…

Gageen0
- 1
- 1