Questions tagged [equation-solving]

763 questions
0
votes
1 answer

Interesting Byte Mix Equation and it's inverse

I recently came across this interesting equation (from the spectre code) that Mixes the value of a byte: MixedByte = ((ByteToMix * 167) + 13) & 0xFF or MixedByte = BITAND((ByteToMix * 167) + 13, 255) Which returns for each value 0-255 a mixed…
Walter
  • 173
  • 1
  • 13
0
votes
1 answer

Matrix dimensions error when using norm()

I'm trying to use MATLAB to run Richardson's iteration for computing the solution of a linear system, Ax=b. I wrote a function to do this, but got an error when I tried to run it. The following is my function where x0 is the initial iterate, L is…
0
votes
2 answers

I need to solve an implicit equation in VBA

I want to give the other parameters that are mentioned in the function, and get a solution for a (the angle), but I get error: "invalid procedure call or argument" Run-time error 5. I need to call the function in excel worksheet. It is a pretty long…
blend
  • 142
  • 5
0
votes
1 answer

Numerically Solving equations with Standard Normal CDF and PDF (Optimization) using R

How do we go about numerically solving equations of the sort below using R? Please note, this can be shown to be convex and there is a separate thread on…
texmex
  • 151
  • 9
0
votes
0 answers

Find solution to system of symbolic integrals

I'm trying to find a solution to two functions. The functions are integrals involving four variables (eta, xi, a, c). The code first integrates with respect to eta, then xi, yielding a function only of a and c. It does this for two different sets…
0
votes
1 answer

Solving a nonlinear equation numerically

I have the following equation to solve: aRatio = ((sqrt_gamma_ratio * (1/m) * ((1 + (squared_m_coefficient * m^2))^num_exponent))/ denom); where variables aRatio, sqrt_gamma_ratio, squared_m_coefficient, num_exponent, and denom are all known…
0
votes
0 answers

Solve N^2 nonlinear equations system

I am trying to solve a system of N*N nonlinear equations, but I get stuck and do not understand what is the problem. My equations are : h_{j,i} = (T/2) \sum_{k=1..N}{f(h_{k,j})} - (T/2) f(h_{i,j}) for i and j in [1..N]^2, and where the h are the…
Alexandre
  • 43
  • 4
0
votes
0 answers

Matlab - camera equations solver

I have troubles solving camera equation in matlab. I am given two points and two camera matrices and my task is to find lambda , and U . I created a function as follows and now I am trying to find a way to solve this. Can anyone please help me with…
user4828513
0
votes
2 answers

Can I use Alloy to solve linear programming like problems?

I want to find a solution for set of numerical equations and I wondering whether Alloy could be used for that. I've found limited information on alloy that seem to suggest (to me, at least) that it could be done, but I've found no examples of…
Paul
  • 37
  • 5
0
votes
0 answers

Matlab fsolve more unknowns than equations

I'm currently using Matlab's fsolve() to solve a system of three equations with eight unknowns (equations of motion for a four thruster vehicle - force and angle per thruster). I realize there is an infinite number of solutions available, but I'd…
0
votes
1 answer

Trouble solving generated output

I'm fairly new to java and am having trouble preparing for an exam. This sample question asks to show work to give the exact output generated by this code: public class Lab7Experiment extends JApplet { int x=3, y=-3, z=5; int someValues [] =…
0
votes
2 answers

R BB package - no way to pass parameters to objective function?

I am eager to use the R package BB to solve a system of non-linear equations, but the syntax does not seem to allow for parameters to be passed to the system of equations. Very strange since this would severely limit what appears to be an otherwise…
ben
  • 787
  • 3
  • 16
  • 32
0
votes
4 answers

Solving polynomial equation in Java

I have the following code which gives the price given a certain rate: public static void main(String[] args) { double term = 5; double coupon = 5; double rate = 0.0432; //should get the price == 103; double price; double…
rezan21
  • 1,065
  • 10
  • 14
0
votes
1 answer

Equation variable transfer using JavaScript

I've been working with the algebra.js JavaScript library for a while and I can't find an answer to my problem. I have a number of equations that varies in type; (Linear, Radical, Quadratic, and Exponential) And I need to switch the sides of two or…
user8836079
0
votes
1 answer

Why can't I run my Regulafalsi code? Because of NoneType error

Here is my code for one of the root-finding methods. from __future__ import division def falseposition(f, a, b, imax=50, tolerance=1.0e-10): i = 0 while i < imax: c = (a*f(b)-b*f(a))/(f(b) - f(a)) if c == 0 or f(c) < tolerance: …
A.Stacey
  • 3
  • 2