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
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
(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
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(
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
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
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); --------------
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
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
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
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. --------
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
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
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_
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
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
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
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
How can the following be best accomplished in Mathematica? In[1] := Solve[f[2,3]==5,f ∈ {Plus,Minus,Divide}] Out[1] := Plus --------------Solutions------------- The desired expression syntax can be transformed into a set of Solve expressions: fSolve[
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[1] = a - w - y q[2] = b - w - z q[3] = c - x - y q[4] = d - x - z It would b