Questions tagged [equation-solving]

763 questions
0
votes
1 answer

Genetic programming for symbolic equation solving

I'm trying to perform a genetic programming system which solves an equation (basically first and second degree polynom equations) symboliclly. It means that for a*x+b=0 it must give me a tree representation of -b/a. What i mean by symbolically is…
0
votes
3 answers

Solving simultaneous equations (>2) without conversion to matrices in R or Python

I have a set of 4 simultaneous equations: 0.059z = x 0.06w = y z+w = 8093 x+y = 422 All the solutions I've found so far seem to be for equations that have all the variables present in each equation, then convert to matrices and use the solve…
Keno
  • 133
  • 2
  • 10
0
votes
1 answer

Convert this loss function equation into python code

Please check this equation of this link and convert it into a python loss function for a simple keras model. EQUATION PICTURE OR IMAGE LINK FOR CONVERTING IT TO PYTHON'S KERAS REQUIRED LOSS EQUATION where the max part or the curve selected part of…
0
votes
0 answers

How to solve system of algebraic equations in matlab

I am trying to isolate m, s and h in the following system of equations. I am new to Matlab, so not sure if the code is wrong or if something with equations are off. Hope you can help! syms l p a m o b s t w c h d g e eqn1 =…
Frederik
  • 21
  • 5
0
votes
3 answers

How to create linear function in Python without using numpy.linspace()

So, i am trying to create a linear functions in python such has y = x without using numpy.linspace(). In my understanding numpy.linspace() gives you an array which is discontinuous. But to fo I am trying to find the intersection of y = x and a…
RobertPage12
  • 19
  • 1
  • 5
0
votes
1 answer

How to set up solving of multiple ODEs in Matlab propperly?

I have a task of writing an M script that would set up (and finally solve) a set of 19 differential equations and all of the equation coefficients. I am not sure what is the best way to input those equations. Example of some equations: Example of…
0
votes
0 answers

How can I make a function to check the interval between -ve & +ve values of an equation?

I am making a program for solving questions of bi-section method and finding the value of one real root of the given equation. In evaluating the equation for different values of a given variable, firstly, we have to find the interval, in which the…
0
votes
0 answers

Substitute real values into derived symbols using sympy

I am trying to evaluate the value of an equation by substituting in the values. exp=2*C_0*Derivative(theta(t), t, t) - C_1 - 2*C_2*theta(t) The above is the equation and I have the data for the angle(theta) and angular velocity and acceleration.…
TriposG
  • 103
  • 1
  • 2
  • 11
0
votes
0 answers

Solving equations with interdependent variables & functions when data is in bits

How to solve 2 equations with two variables when functions are involved and data is in bits ? Equation 1: f +i + constant data =reed solomon function (h+contant data) Equation 2: h +i + constant data = reed solomon function ( f + constant…
0
votes
0 answers

Finding multi-parameter function maximum

I am trying to solve a problem where a number of parameters (let's say 5, can be n) result in a float through a convoluted function that I cannot retro-engineer f(a,b,c,d,e) = result I can run the function ad libitum with anything as a,b,c,d and e,…
Nicolas Berthier
  • 459
  • 1
  • 8
  • 17
0
votes
2 answers

Sympy: solving non linear equation

I want to solve this non linear equation: f100 = omega_nf_eq where: f100 : numerical costant, defined as a variable for now. omega_nf_eq: equation. Firstly I've tried to solve it sybolically and my code was: import sympy as sym K_u, K_m =…
0
votes
0 answers

Large (solvable) equation systems as inputs to test gaussian equation solver

I have coded an equation solver using gaussian elimination. The input is units that are to be sorted by their size relative to the largest unit (example output 1l = 10dl = 100cl = 1000ml). I have example inputs that the code handles well, but on…
0
votes
1 answer

R: solving for a variable

I wonder if there's any function that can solve for a variable in an equation in terms of other values. For example, I have: (a-1/3)/(a+b-2/3)==0.3 The output of this function should be: (0.3*b+0.1333333)/(0.7) Or something along these…
zest16
  • 455
  • 3
  • 7
  • 20
0
votes
0 answers

Error when returning the solution of a system of coupled nonliear differential equations with Sympy

I am very new to programming, even more to Sympy. I tried to grasp what I could from the syntax of algorithms that I found online to solve systems of differential equations. However I get an error by running the following code : from sympy import…
0
votes
1 answer

How to return a finite (float) value with nonlinsolve in SymPy?

I am very new to programming, and had to use sympy for a school project. I think I get that using nonlinsolve to return an angle gives an ImageSet with the angle + 2n*pi. However I want it to return only the value of the angle (in the interval…
Joris
  • 3
  • 3