Questions tagged [equation]

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

Filter by
Sorted by
Tagged with
114votes
24answers
94kviews

Equation (expression) parser with precedence?

I've developed an equation parser using a simple stack algorithm that will handle binary (+, -, |, &, *, /, etc) operators, unary (!) operators, and parenthesis. Using this method, however, leaves ...
user avatar
  • 89.4k
90votes
6answers
186kviews

How to label each equation in align environment?

I wonder how to label each equation in align environment? For example \begin{align} \label{eq:lnnonspbb} \lambda_i + \mu_i = 0 \\ \mu_i \xi_i = 0 \\ \lambda_i [y_i( w^T x_i + b) - 1 + \xi_i] = 0 \end{...
user avatar
  • 87k
52votes
2answers
116kviews

number several equations with only one number

How can I number several equations in a align environment using only one number? For example \begin{align} w^T x_i + b \geqslant 1-\xi_i \text{ if } y_i=1, \nonumber \\ w^T x_i + b \leqslant -1+\...
user avatar
  • 87k
51votes
7answers
123kviews

How to write equations in html? [closed]

I want to write some complex mathematical equation in my web page. Is there any plugin or anything for this?
user avatar
  • 982
48votes
6answers
239kviews

How can I use "e" (Euler's number) and power operation in python 2.7

How can i write x.append(1-e^(-value1^2/2*value2^2)) in python 2.7? I don't know how to use power operator and e.
user avatar
45votes
16answers
38kviews

Math equations on the web

How can I render Math equations on the web? I am already familiar with LaTeX's Math mode.
user avatar
  • 22.5k
41votes
7answers
60kviews

Equation parsing in Python

How can I (easily) take a string such as "sin(x)*x^2" which might be entered by a user at runtime and produce a Python function that could be evaluated for any value of x?
user avatar
39votes
2answers
99kviews

Solve an equation using a python numerical solver in numpy

I have an equation, as follows: R - ((1.0 - np.exp(-tau))/(1.0 - np.exp(-a*tau))) = 0. I want to solve for tau in this equation using a numerical solver available within numpy. What is the best way ...
user avatar
36votes
5answers
153kviews

How can I solve equations in Python? [closed]

Let's say I have an equation: 2x + 6 = 12 With algebra we can see that x = 3. How can I make a program in Python that can solve for x? I'm new to programming, and I looked at eval() and exec() but I ...
user avatar
36votes
6answers
37kviews

Is it possible to plot implicit equations using Matplotlib?

I would like to plot implicit equations (of the form f(x, y)=g(x, y) eg. X^y=y^x) in Matplotlib. Is this possible?
user avatar
  • 1,111
31votes
4answers
12kviews

how to handle an asymptote/discontinuity with Matplotlib

When plotting a graph with a discontinuity/asymptote/singularity/whatever, is there any automatic way to prevent Matplotlib from 'joining the dots' across the 'break'? (please see code/image below). I ...
user avatar
  • 1,111
26votes
4answers
68kviews

How do I break a long equation over lines?

I am trying to add an equation in a new line. The problem is that the equation is too long for the line, and I need to break it manually. Otherwise, it just overlaps to the right column, or to the ...
user avatar
  • 4,009
25votes
15answers
71kviews

Simplest way to solve mathematical equations in Python

I want to solve a set of equations, linear, or sometimes quadratic. I don't have a specific problem, but often, I have been in this situation often. It is simple to use wolframalpha.com, the web ...
user avatar
  • 80k
25votes
6answers
70kviews

Latex: how to break a line inside $$

I want to manually break a line inside $$: $$something something <breakline> something else$$ I tried \\, \newline, and \linebreak but none work. Ideas?
user avatar
  • 13.2k
24votes
2answers
7kviews

Documenting equations with deqn and roxygen

I'm using \deqn{}{} with roxygen2 to document equations for a function in a package. The LaTeX (the 1st argument to deqn) renders fine because white space is ignored in LaTeX equations, but I have a ...
user avatar

15 30 50 per page
1
2 3 4 5
131