Questions tagged [equations]

194 questions
2
votes
2 answers

Solve a banded matrix system of equations

I need to solve a 2D Poisson equation, that is, a system of equations in the for AX=B where A is an n-by-n matrix and B is a n-by-1 vector. Being A a discretization matrix for the 2D Poisson problem, I know that only 5 diagonals will be not null.…
Patrik
  • 845
  • 2
  • 8
  • 20
2
votes
4 answers

Computer Algorithm for Solving Determinants

I wanted a computer algorithm which could solve an n x n Determinant and return a value. Most recommendably in C++ language, where input is a 2D Array, and N, and output is the value. There is an exhaustive method in Mathematics to solve…
2
votes
1 answer

Solving integer constrained optimization problems

I'm new to these problems both mathematically and programmatically. If anyone could suggest a c++ library to use that could solve the following problem I would really appreciate it. Given constants: {x_1, ..., x_n}, {y_1, ..., y_n}, {z_1, ..., z_n},…
Dan
  • 96
  • 3
1
vote
1 answer

how to display math equations (integration, algebraic, etc) in UILabel

I am working on an app for iPhone and iPod Touch that has to show complex mathematical equations like algebraic, integration, summation formulas along with some text in UILabel. I researched and found that Latex is the answer, is that correct? That…
Aman
  • 105
  • 2
  • 10
1
vote
2 answers

How to plot the solutions to a set of equations in Mathematica?

How does one plot the solutions to a set of equations in Mathematica? Even if there are only two variables, these equations are sufficiently complicated that they cannot be rearranged so that one of the variables can be set equal to a function of…
Tyson Williams
  • 1,630
  • 15
  • 35
1
vote
3 answers

What would the equivalent Javascript equation be for this graph?

I'm currently working on making an interface where I have image links that lean towards the mouse cursor. This is more for fun than as a serious project, but nevertheless the information I'm learning from it will be useful in the future. Right now I…
webdesserts
  • 1,003
  • 8
  • 22
1
vote
2 answers

how do I break an equation when there is \left and \right involved?

I am using an align environment, and at some point I am interested in breaking an equation to the next line. The problem is that this equation includes a \left and \right, so when I try to break it using \\, I get an error. Any ideas? For example,…
myjava
  • 23
  • 1
  • 4
1
vote
1 answer

PHP - Solving Equations that include a ternary operator without eval()?

I'm currently working on a PHP application that needs to solve equations that may, or may not, have a ternary operator. For example, after replacing my variables in the equation, we are left with the following string: $eq = '(3.07 > 10 ? 1.93 * 10…
Nate
  • 11
  • 1
1
vote
0 answers

Symbolic toolbox: Adding equation breaks solution

In a system of simultaneous equations, Matlab [version R2016a] finds a solution – but fails to find this (still valid) solution when I add an additional (and for the solution irrelevant) equation to the system. This is (a simpler version of) my…
Jan Madrid
  • 11
  • 1
1
vote
2 answers

oMath from excel to word

I am creating a word report through excel VBA. I need math equation to be written but unfortunately, the word document do not autocorrect \pi and \times. Otherwise the equation is printed. Can someone suggest me what is the way forward. Below is the…
Raghu
  • 114
  • 2
  • 10
1
vote
2 answers

How to make expressions in Tkinter Python

I'm new in python programming and I'm having some issues in developing a specific part of my GUI with Tkinter. What I'm trying to do is, a space where the user could enter (type) his math equation and the software make the calculation with the…
GabrielBR
  • 25
  • 1
  • 6
1
vote
5 answers

javascript - functions and equations confusion

var number = prompt('Input a number!'); var n = number; function getList() { for (var n = 1; n <= 17; n++) { if (n % 3 == 0 || n % 5 == 0) console.log (n); } } console.log(getList()); console.log((n*(n+1))/2); //equation…
Ken
  • 13
  • 4
1
vote
1 answer

Solving multi equations in matrix form using fsolve (Matlab)

Good morning, I'm trying to solve 8 equations with 8 unknowns using fsolve and want to see how results are changing with one parameter (Vn1). When used it doesn't work correctly - it overwrites score and at the end there is only result with last…
1
vote
1 answer

How to update equation links using openpyxl?

I am trying to read data from equations that reference internal cells (the references are both to cells on the same worksheet, and also to cells on other worksheets) using openpyxl, but when I try and read the values from equations I get a value of…
EliSquared
  • 1,409
  • 5
  • 20
  • 44
1
vote
1 answer

Using forms to Collect data for Javascript functions?

I'm trying to collect data via forms on one page, then transfer that data to the next page for use in a JS function. (Specifically, I want the user to input values for A, B, and C of the Quadratic equation, and then send to a page where a script…
nwd12a
  • 21
  • 4