Questions tagged [equations]

194 questions
14
votes
2 answers

Equation Threading: Why the default behavior?

I recently rediscovered a small package by Roman Maeder that tells Mathematica to automatically thread arithmetic and similar functions over expressions such as x == y. Link to Maeder's package. First, to demonstrate, here's an example given by…
telefunkenvf14
  • 1,011
  • 7
  • 19
14
votes
3 answers

Guarded Equations in Haskell

Can somebody provide me with an easy to understand explanation of a guarded equation as it is used in Haskell and also its mathematical sense?
Tony The Lion
  • 61,704
  • 67
  • 242
  • 415
13
votes
2 answers

Latex - \multicolumn within an align* environment

I would like to have a \multicolumn like effect within an align* environment, as shown in the code snippet (which doesn't work) below. I.e., I want the text to be aligned with the leftmost column, but it shouldn't affect the alignment…
ARV
  • 6,287
  • 11
  • 31
  • 41
8
votes
1 answer

How to show math equations in QTextEdit?

Does anyone know how to show mathematical equations in QTextEdit written in any format (TXT, MathML, MML, LaTeX, HTML, XML or anything) using only Python, that is without using 3rd party packages like Latex itself.? I tried to find the MathML Widget…
linuxoid
  • 1,415
  • 3
  • 14
  • 32
8
votes
5 answers

Python solve equation for one variable

I'm trying to solve an equation in python using SymPy. I have a generated equation (something like function = y(8.0-(y**3.0)) which I use with SymPy to create a new equation like this: eq = sympy.Eq(function, 2) which outputs y(8.0-(y**3.0)) == 2.…
hah
  • 89
  • 1
  • 1
  • 2
8
votes
3 answers

Microsoft equation editor syntax

Does anyone know where to find the syntax specification for entering equations into the 2007/2010 equation editors using only the keyboard? Searching just gives many links to people talking about how great the editor is, not instructions on how to…
Elliot
  • 5,211
  • 10
  • 42
  • 70
7
votes
3 answers

Double Summation in Python

I am trying to write a code to conduct a double summation (see pic) in which; M is the subjects, N is the Trials, Yijt is the measured wave form data (3d array) so far I have; Given Y is the data arranged as Y[subjects, trials, time] #…
7
votes
3 answers

Using scipy sparse matrices to solve system of equations

This is a follow up to How to set up and solve simultaneous equations in python but I feel deserves its own reputation points for any answer. For a fixed integer n, I have a set of 2(n-1) simultaneous equations as follows. M(p) =…
Simd
  • 19,447
  • 42
  • 136
  • 271
5
votes
2 answers

Eliminate variables from equations in MATLAB

I want to eliminate variables from an equation using MATLAB. For example, lets consider the following equations: p = (m + n) q = (m - n) r = (m^3 - n^3) Now, r could be expressed in terms of p and q by entirely eliminating m and n like this: r =…
iKnowNothing
  • 175
  • 11
5
votes
1 answer

Is there anything wrong with my implementation of Verhulst’s Formula?

I got assigned a program to take inputs and output a table that calculated Verhulst’s Formula for k number of years. I used this equation: http://www.resnet.wm.edu/~jxshix/math410/Verhulst.html The equation is below: p(n+1) = (1+g-h)p(n) -…
Chris T
  • 453
  • 1
  • 6
  • 17
5
votes
3 answers

Solving overdetermined system in numpy when the value of one variable is already known

I'm trying to solve an overdetermined system in Python, using the numpy.solve function. I know the value of one of the variables and I know that in theory I can find a unique solution for the system if I can somehow plug in that known value. My…
Bubba
  • 105
  • 1
  • 1
  • 5
5
votes
3 answers

how can I make equations smaller in TeX?

how can I make equations smaller in TeX? For example, I want to use the equation environment as follows: \begin{equation} long equation here \end{equation} but then it's displayed in a way that's too large to fit in the margin. I get around this…
user248237
5
votes
1 answer

How to parse mathML in output of WordOpenXML?

I want to read only the xml used for generating equation, which i obtained by using Paragraph.Range.WordOpenXML. But the section used for the equation is not as per MathML which as i found that the Equation of microsoft is in MathML. Do I need to…
serene
  • 685
  • 6
  • 16
4
votes
1 answer

How to Solve and Plot Lotka-Volterra Differential Equations in Matlab

I was wondering if someone might be able to help me solve the Lotka-Volterra equations using MatLab. My code doesn't seem to be working. I do the following: Step 1 - I created a file entitled pred_prey_odes.m containing the following code: % the…
snehoozle
  • 273
  • 2
  • 4
  • 14
4
votes
1 answer

How can I solve an equation with two variables where x is maximum?

Lets say I have an equation - x^2+y^2=100 - obviously there's more than one solution. I want to make Mathematica 8 give me the solution (where only natural numbers involved) where x will be maximized (i.e x=10, y=0) I'm pretty new to Mathematica -…
Mark Segal
  • 5,427
  • 4
  • 31
  • 69
1
2 3
12 13