Questions tagged [equation-solving]

763 questions
0
votes
0 answers

count the digit for the given number

Given a number N. Count the number of digits in N which evenly divides N. Note :- Evenly divides means whether N is divisible by a digit i.e. leaves a remainder 0 when divided. Input: N = 12 Output: 2 Explanation: 1, 2 both divide 12 evenly Expected…
0
votes
0 answers

Computing an equation-based variable in SPSS with Euler's number

I'm currently working with a large population dataset in SPSS, and at this stage of my analysis I would like to predict how many people are at risk of having nonalcoholic fatty liver disease (NAFLD). I have all the necessary inputs (i.e. BMI, waist…
0
votes
0 answers

How to define transfer variables when solving equations in 1stOpt?

I am trying to solve a non-linear integration equations in 1stOpt. The parameters to be solved are x1, y1, Uratio, and 5 transfer variables are used to build the equations: Left, Right, C, pl, pr. ============================ Problems 1 The code…
0
votes
2 answers

Solving an equation with one variable in Python

I am trying to solve the equation: log(1+x)/x - 1/(1+x) == 2/3 * q * x**2 for x with q = 4e-4 I tried import numpy as np import scipy.optimize as so q = 4e-4 eqn = lambda x: np.log(1+x) / x - 1 / (1+x) - 2/3 * q * x**2 sol =…
Matrix23
  • 103
  • 4
0
votes
0 answers

Pressure ratio vs Friction and other geometric factors

The problem I am facing consists of plotting the graph I attach, only the discontinuous lines at the moment. . For that purpose I need to take into account these equations: . Before starting explaining the process, there is one constant, gamma=1.4,…
0
votes
0 answers

How to make a C program to find the interval of a root of an equation

I need help making a C program that calculate the root intervals of a given equation. I made a program based on the concept that if f(a)f(b) < 0, then there exists at least one root in (a, b). #include #include #include…
0
votes
2 answers

Fsolve with multiple vector equations

I am trying to solve an equation similar to the simplified example x / x.sum - b = 0 where x is an n-dimensional vector. Since one can multiply x with any constant without changing the equation, the solution is up to a normalization. Because of…
eigenvector
  • 313
  • 1
  • 3
  • 12
0
votes
0 answers

Find the direction in which to look for a solution

Good time dear forum participants! So, I just need an advice for direction, in which to look for a solution. For example, terminology in mathematics, or examples of similar problems. I have 3 lists of values A, B and C A is a list of constants B is…
0
votes
0 answers

Is there any way to solve this equation in r?

Suppose I have this equation: prev = P12/(P11 + P12) with P11 <- exp(-(sigma+alpha_h)*t-(beta1_dot_h/beta2_h)*(exp(beta2_h*(x+t))-exp(beta2_h*x))) for P12 is a little bit long equation so I divided into 3 parts part1 <-…
0
votes
1 answer

Solving an equation in r

Suppose I have the following equation: sigmagm <- function(sigma){ (-sigma*t) - (alpha_h*t) - ((beta1_dot_h/beta2_h) * (exp(beta2_h*(x+t)) - exp(beta2_h*x))) - ((beta1_dot_h/beta2_h) * exp(beta2_h*x)*(1 - (1+gama) * exp(beta2_h*t))) + (alpha_dd +…
0
votes
1 answer

Sympy.solve can't eliminate intermediate symbols from systems of equations

WHAT I WANT TO DO I am building a DIY robot arm. I need to design the length of the links, the joint configuration, and motors size function of my working area and payload. I decided it would be a fun project to make a program to help me with the…
0
votes
0 answers

Is there a method to create a Sympy equation solving system that recognizes the type of equation as well

I am making an equation solver using sympy. I plan the UI to be a single input field. However, I am not sure that how to make the system recognize the type of equation, lets say simulataneous, diffrential etc. Can anyone guide on this? Thanks I am…
0
votes
0 answers

How can I control my WIFI router configuration in an Android app without using webview?

I want to create An android App to control WIFI router configuration such as change WIFI password , name change limited device and more . but without used webview I do not know what should. please help me. I Wanna Some one to guide me to right way.
0
votes
0 answers

RPLy parsing problem with implicit multiplication and precedence

I'm using Python's RPly to make a basic algebraic/mathematical equation parser, and I'm having a problem where unary operations make things a bit odd. with unary operations implemented the way I have: 1 + 2 + 3 : 2 + 3 gets evaluated before 1 + 2…
0
votes
0 answers

Setting up 2x2 system of equations where one unknown is dependent on the other

I'm trying to solve a system of equations to find a point where a line originating from a known point intersects with a known function: m*x_3 - y_3 = m*x_2 - y_2 Where it also holds that for the given function f: y_3 = f(x_3) It's certainly a system…
Sam
  • 1
  • 1