equation solving

• Non-linear system of equations Julia2019-03-13

I'm trying to solve a large number (50) of non-linear simultaneous equations in Julia. For the moment I'm just trying to make this work with 2 equations to get the syntax right etc. However, I've tried a variety of packages/tools - NLsolve, nsolve in

• Solving a system of equations in Prolog2013-04-12

Assume I have a number X and I wish to solve system of equations, say Y+Z=X, Z*Y = 1. Now, this has solutions Y=1/Z and Z = (sqrt(X*X-4)+X)/2 or (X-(sqrt(X*X-4)))/2. So I can write in Prolog: solve(X,Y,Z):- Y is (sqrt(X*X-4)+X)/2, Z is 1/Y. solve(X,Y

• Using fminsearch to solve an equation2012-04-29

(vgb-phy_s)^2=G^2*phy_t*((exp(-x)+x-1)+exp(-(2*phi_b/phi_t))*(exp(x)-x-1)) where x=phy_s/phy_t phy_t=0.0288; % phy_t=k*T/q; (k=1.3806503*10^-23, T=300 K, q=1.6*10^-19) phy_b=0.5267; % phy_b=phy_t*ln(Na/ni) G=(sqrt(2*q*es*Na)/cox); Here I need to plot

• Using fsolve command in MATLAB2012-04-26

How can I solve these kind of equations? (-1.5/w)*sin(w*t) + 1.5*t - 0.45 = 0 Knowing that: w = sqrt(10) Thanks for your help. --------------Solutions------------- You can solve this equation group of 2 equations this way: solution = solve('w = sqrt(

Tags: matlab, equation solving
• Solving for unknown upper bound of the integral2012-04-16

I am trying to implement an algorithm in R that involves solving for the boundary limit of the integral. For example, I want to find a given the following integral: integral_0^a exp(x) = 1/2 I have a rough idea how to do it in matlab. But how would o

Tags: integral, equation solving
• Strrep not working in Matlab to make String into function2012-04-01

Hello I am new to MATLAB , I wanted to know how can I make my string into function . I want to access the function as a string from user in standard Matlab format (e.g exp(-10*X)-sin(pi*X)-2*tanh(X) ) Here X is the variable. Then I want to replace 'X

• Matlab Solve System of Equations with Quantized Variables2012-03-13

I am trying to use solve() to solve a system of equations of the following form eq1=a1x+a2y; eq2=b1x+b2y; where a1 = .05 for values of x<5, .1 for values of 5 Is there a way to solve for this using solve? As in sol = solve(eq1,eq2); --------------

Tags: matlab, equation solving
• SymPy - Arbitrary number of Symbols2012-02-29

I am coding a function that solves an arbitrary number of simultaneous equations. The number of equations is set by one of the parameters of the function and each equation is built from a number of symbols - as many symbols as there are equations. Th

• Python semiprime factorization equation solver issues2012-02-19

I am a farmer / novice number theory researcher. I happened to discover some years back a pattern that emerged in the distribution of the prime numbers that related the number of primes to the operation of 300 Fibonacci-like sequences. Well, as a per

• How to find shortest path in both directions of a number with over wrapping?2012-01-29

Let's say I have to pick a number from 0-10. The number I pick is 6. The next number I want to pick is 0. Now the rules are I have to keep incrementing the number by 1 or decrementing it by 1, the number can also wrap around the last number. Now what

• Anagram solving error python2012-01-14

I have written an anagram solving algorithm, which does not work. for word in wordlist: #Checking for equal length if sorted(word.replace("\n", "")) == sorted(anagram): possible.append(word) I needed to use len(word) - 1 to take away the \n. --------

• Mathematica: FindRoot errors2012-01-11

FindRoot[ 27215. - 7.27596*10^-12 x + 52300. x^2 - 9977.4 Log[1. - 1. x] == 0 , {x, 0.000001} ] converges to the solution {x -> -0.0918521} but how can I get Mathematica to avoid the following error message before the solution: FindRoot::nlnum: Th

• Solving a difficult equation with two variables in Java2012-01-11

My assignment says to do the following: Search2: Search for a solution to x*x + y*y - 12x -10y + 36 = 0. Search from 0 to 10 in both x and y, searching every y value before moving to the next x. Print the first three solutions found. (Note - a labell

Tags: java, equation solving
• fsolve always returning the guess/estimate2011-12-19

I'm using scipy's optimize.fsolve function for the first time to find the roots to an equation. The problem is that whatever number I use as the guess/estimate value is what I get back as my answer (to within about 8 decimal places). When using full_

Tags: python, scipy, equation solving
• Formulating the exponential equation given a certain pair of points2011-12-16

I have the following pairs of points: (0 , 100) ; (0.81 , 41) ; (1.38 , 20) ; (1.75 , 9) ; (2 , 4) How can I determine the equation of the curve passing through this points? Thanks very much! UPDATE What I'm trying to achieve is to get the function r

• Calculating 4th power differences2011-12-15

i am using Modelica for solving a system of equations for heat transfer problems, and one of them is radiation which is writtenas Ta^4-Tb^4. Can someone give me exclusive answer wether it is computationally faster solving a system with the equation w

• Find the maximum integer such that this algebraic constraint is satisfied in Mathematica2011-11-19

For example, I have an expression as a (arbitrary) function of integer n f[n_]:=10^n*(n^2+4*n) I want to find the maximum integer n such that f[n]<=m for another number m. I could formulate this as an integer programming/optimization problem. But

• Solving simultaneous equations with R2011-11-16

Suppose I have the following equations: x + 2y + 3z = 20 2x + 5y + 9z = 100 5x + 7y + 8z = 200 How do I solve these equations for x, y and z? I would like to solve these equations, if possible, using R or any other computer tools. --------------Solut

Tags: equation solving
• Is there a built-in Mathematica function to find operators rather than numbers in equations?2011-10-30

How can the following be best accomplished in Mathematica? In := Solve[f[2,3]==5,f ∈ {Plus,Minus,Divide}] Out := Plus --------------Solutions------------- The desired expression syntax can be transformed into a set of Solve expressions: fSolve[

• C++ library for undetermined equation systems2011-10-17

I have been looking for a library in c++ to solve an undetermined system like this q is a vector, w, x, y, z variables and a,b,c,d constants. argmin_q MAX(q) - MIN(q) s.t. q = a - w - y q = b - w - z q = c - x - y q = d - x - z It would b

Tags: solver, equation solving