Questions tagged [equations]

194 questions
1
vote
1 answer

Solving a non-linear system of equations in Matrix form in Python

I am trying to solve a non-linear system of equations of the form AX=X where, A = M-by-M matrix X = M-by-1 matrix Thus, in total I have M (=200) equations (and M unknowns). More specifically, A = [f11(x,y) f12(x,y) .... f1m(x,y), f21(x,y) f22(x,y)…
0
votes
3 answers

How to generate bit-shift equations?

Preferably for this to be done in C#. Supposedly, I have an integer of 1024. I will be able to generate these equations: 4096 >> 2 = 1024 65536 >> 6 = 1024 64 << 4 = 1024 and so on... Any clues or tips or guides or ideas? Edit: Ok, in…
user917615
0
votes
4 answers

Maths with mySQL PHP database

I'm looking into doing some maths to work out the total amount of 'credits' all users in a database have. I have a database with a table called users with userid, username, email and credit columns. I was wondering if there is a way of diplaying all…
Oliver Whysall
  • 351
  • 1
  • 6
  • 17
0
votes
1 answer

Converting a math expression (String) to usable variables

I am trying to make an iPhone-app that does the Monte Carlo simulation on equations given by the user. I want the user to be able to input something like: "2x+(y^2)" and then recieve a result. Is there a way to parse this string and get usable…
user1033619
  • 1,757
  • 2
  • 11
  • 11
0
votes
1 answer

MAth Equation not working properly

I have been working on a math equation for 2 days. The whole process is supposed to take the information from a driver and the return the final average. However, for some reason it is not processing correctly. Any ideas would be much appreciated.…
mrroberts
  • 13
  • 2
0
votes
1 answer

Finding Two Touching circles with limited information

I am working on a track editor and have found myself in a situation where I need to define two touching circles. Ideally I would like to know the centre point, and radius of these circles. The information I have is a point on the circumference of…
0
votes
1 answer

Solve Matrix with PHP

I want to solve a matrix with PHP. For example, if I have three points: (x0, y0), (x1, y1) and (x2, y2), I want to know what p[0], p[1] and p[2] is in y = p[2]*x^2 + p[1]*x^1 + p[0]*x^0, valid for all those points. If n points are given, I want to…
www.data-blogger.com
  • 4,076
  • 7
  • 43
  • 65
0
votes
0 answers

Transform math string equation

Trying to find the best and most flexible way (parser, regex, etc..) to take in a string math equation that uses percentages and output a new string equation that changes the percentages in certain scenarios. It'll have to be flexible because of the…
GN.
  • 8,672
  • 10
  • 61
  • 126
0
votes
1 answer

Streamlabs Chatbot execute response on if else "request"

First of all sorry for my bad english, I am from Germany and currently learning english so please don't be harsh to me. Now my question is, is there a way to execute a response by a bot on an equation, that turns out correct /equal. So in like an…
memeToasty
  • 21
  • 2
  • 4
0
votes
1 answer

Why does some garbage appears instead of array values?

I take equation from a user (ex: 1X1+2X2=24 ) whatever the number of variables , i am toking it to 1X1 ,2X2 by +, - or = and then put them in array of char and each toking by x or X, and put it on another array ,but some garbage comes…
0
votes
1 answer

Multiple IF functions with multiple possible solutions

OK. So I am setting up a business which sells 7 different plans based on affordability and circumstances. I wish to input customer information into an Excel spreadsheet and the spreadsheet to tell me the Plan. However basic IF equations are not…
Apackman
  • 1
  • 1
0
votes
0 answers

How to pass dynamic variables to an equation in VBA

I have an equation in VBA f = Evaluate("index(A2:G27,match(1,(B2:B27=""Apples"")*(C2:C27= ""Oranges""),0),4)") But I would like to be able to refer to the ranges as dynamic, depending on other conditions. For example, another search will be range…
frank
  • 3,036
  • 7
  • 33
  • 65
0
votes
1 answer

Adding two symbolic equations

I have two equations in Matlab, say x^2+2*y=3, y^4=5*x+1 Here x,y are symbolic variables. What is the best way to add up these two equations, not manually of course ( if the LHS and RHS gets added up separately and stays in the same form, the…
0
votes
1 answer

How to find the equation of a curve given the data set (x,y) in VB.net?

I am new to VB.NET and I am trying to write code in vb.net to find a equation when data points are given. For example (1,5),(2,6) etc. I need to find a equation(not necessarily always linear) from the given points. I tried to use the help given in…
Shakyz Dammn
  • 1
  • 1
  • 1
0
votes
2 answers

Creating a form in html and Javascript solving a formula and getting the answer

I need some help finishing the javascript for a form where users input numbers and the numbers are put into an equation and solved. I am pretty sure I have all of the HTML done correctly but the Javascript code is throwing me. Any help in figuring…