Questions tagged [equation]

A statement that the values of two expressions are equal indicated by the sign = .

A statement that the values of two s are equal indicated by the sign =.

1925 questions
12
votes
5 answers

Solving a simultaneous equation through code

This seems like an incredibly simple and silly question to ask, but everything I've found about it has been too complex for me to understand. I have these two very basic simultaneous equations: X = 2x + 2z Y = z - x Given that I know both X and Y,…
Nicolas
  • 253
  • 1
  • 3
  • 7
11
votes
6 answers

Equation parser efficiency

I sunk about a month of full time into a native C++ equation parser. It works, except it is slow (between 30-100 times slower than a hard-coded equation). What can I change to make it faster? I read everything I could find on efficient code. In…
Marupio
  • 123
  • 6
11
votes
1 answer

Convert an equation to Python

I have several equations and need to convert it into Python. The problem is that I tried to plot a graph according to the equation. However, the graph that I get is not the same as the original one. In the paper, the equation of error probability…
Afir
  • 483
  • 3
  • 15
11
votes
2 answers

Solve system of two equations with two unknowns

Solve the system of two equations with two unknowns below: a1, b1, c1, a2, b2 and c2 are inputted by the user himself. I've been trying to find a math solution for the problem first and I can't seem to go far.. What I've tried so far is : From…
user2925251
  • 117
  • 1
  • 1
  • 6
10
votes
5 answers

How to solve a math equation in a programming language?

I need help to solve this formula ((n * 2) + 10) / (n + 1) = 3, preferably in PHP. (The numbers 2, 10 and 3 should be variables that can be changed.) I'm able to solve this equation on paper quite easily. However, when I try to implement this in…
xidew
  • 411
  • 1
  • 5
  • 12
10
votes
1 answer

How to find the points of intersection of a line and multiple curves in Python?

I have data represented in the figure. The curves were extrapolated and I have a line whose equation is known. The equation of curves are unknown. Now, how do I find the points of intersection of this line with each of the curves? The reproducible…
Tom Kurushingal
  • 6,086
  • 20
  • 54
  • 86
9
votes
5 answers

How can I find equation of a plot connecting data points in Matlab?

I have various plots (with hold on) as show in the following figure: I would like to know how to find equations of these six curves in Matlab. Thanks.
user238469
9
votes
6 answers

Solve Quadratic Equation in C++

I am trying to write a function in C++ that solves for X using the quadratic equation. This is what I have written initially, which seems to work as long as there are no complex numbers for an answer: float solution1 = (float)(-1.0 * b) + (sqrt((b *…
NulPtr
9
votes
1 answer

Flash library for math equations and graphs, like DragMath and PetitGrapheur

I'm working on e-learning solution and our project requires free or commercial component for math formulas and graphs rendering. Use cases are: built in flash or flex; compose math equlation like in in http://www.dragmath.bham.ac.uk/demo.html graph…
Stan Reshetnyk
  • 1,986
  • 1
  • 13
  • 31
9
votes
1 answer

Is there a way to control the font size in the equation in JupyterNotebook?

In Jupyter Notebook markdown cells, is there a way to make the font size larger in the equation? c = $\frac{a}{b}$ I triedc = \large{$\frac{a}{b}$} but it doesn't work.
wawawa
  • 2,835
  • 6
  • 44
  • 105
9
votes
2 answers

Looking for a .NET Math Equation Editor and Solver Control

I am looking for a 3rd party custom control that can handle both editing and solving simple math equations (with image generation). I know about LaTeX and using its syntax to generate images of math equations (i've used this project here that…
KabanaSoft
  • 1,591
  • 2
  • 13
  • 13
9
votes
1 answer

Why doesn't css-calc() work when using 0 inside the equation?

I'm using calc() to set the top: attribute in a class. I need some help understanding how calc() gets used - two equations I believe should have the same result don't. (The top equation isn't practical, I'm just trying to debug a larger issue and…
nbixler
  • 490
  • 1
  • 9
  • 24
9
votes
2 answers

Solve this equation with fixed point iteration

How can I solve this equation x3 + x - 1 = 0 using fixed point iteration? Is there any fixed-point iteration code (especially in Python) I can find online?
9
votes
6 answers

generating equation png files based on mathematical input

I was wondering what options were available to generate .png based on the kind of input one feeds a graphing calculator.. so (y^2 + 5x + 3) / ((3x + 3) + 5y + 18) would return The only thing I've found so far is texvc in mediawiki, but it seems…
tipu
  • 9,464
  • 15
  • 65
  • 98
9
votes
3 answers

Solving a Variable Equation defined by the User

Answers in C, Python, C++ or Javascript would be very much appreciated. I've read a few books, done all the examples. Now I'd like to write a simple program. But, I already ran into the following roadblock: My intention is to take an equation from…
user2388026
  • 145
  • 1
  • 6