FAQ Database Discussion Community

## Void function (c++)

I want to create a program that solve quadratic equation (Ax²+Bx+C=0) using 2 void functions: one to insert the values of A,B,C, and the second for solving the equation. This is what I did: #include <iostream> #include <math.h> using namespace std; void add_nmbr(int a, int b, int c){ int *pa,*pb,*pc;...

## Algorithm to find closest integer values that meet certain criteria

algorithm,math,formula,equation
Edited to clarify the application by adding units (ml) and explaining the difficulty to measure wet reagents by units of 1/26. The word 'solution' was ambiguous because it was used to mean both a chemical solution as well as the solution to the problem. Added results based on Edward's reply...

## Converting davenport diagram

jquery,flot,equation,chemistry
I'm an intern at the education department of a hospital, I've been tasked to turn a davenport diagram into a working interactive tool so the teachers can use it in their presentations. I have no background/knowledge in chemistry or equation solving of this level. The Davenport Diagram in question: http://imgur.com/Lo87Aib...

## Mathematica Order of an Equation

order,wolfram-mathematica,equation
Is there a way to obtain the order of an ODE in mathematica. For example, if i have y''+5y i want mathematica return 2 (beacuse it's a 2nd order equation). So, is it possible what i'm asking? ...

## Php doesn't support math characters

php,shell,special-characters,equation
I'm in the process of converting latex to mathml in php.Texmath is the command line tool through which the conversion process can be done. Latex file: \mathbf{f} = (f_{1}, f_{2})^{\prime} test.php: shell_exec('echo "password" | sudo -S /root/.cabal/bin/texmath latexfile > outputfile'); If I run this php file thorugh command line,it generates...

## 1001_s = 19684_10 solving for S in and stating the base

This is a homework question and I don't want the solution, I just want a reference to how to solve similar questions like this. I believe it's explained my course textbook, "Computer Organization & Architecture: Themes and Variations", but I currently cannot afford the textbook. Here's the question: For each...

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

python,numpy,scipy,equation
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 code: import numpy as np...

## Make mathematical equation from 3 lists python

python,list,math,equation
So, i have 3 lists of items. One where the price is stored, one where quantity is stored and one where column numbers are stored. They all have the exact same numbers of elements, and that number is x. I need to do this: finalprice = quantityofx1 * priceofx1 +...

## Update MySQL field's row

python,mysql,mysql-python,equation
I am using Python 2.7 and MySQLdb. I have made a database which has a table called test and in it two fields (id, firstname). The whole script is about counting and showing how many same firstnames do we have. The part of the script is like this right now...

## Python pendulum

python,physics,equation,angle
I'm trying to deduce the pendulum equation out of the Verlet algorithm. This is what I've done with phython using "r" as the angle of the pendulum, "w" as the speed and "a" as the angular acceleration. "h" is the increase of time, and my main problem is that if...

## How do certain variables/equations affect lists?

python,list,range,equation
def list(a, b): for k in range(len(a)): a[k] = a[k] + b[len(b)-1-k] return a When it comes to manipulating lists, how does python execute a function like this one from a line by line basis. Specifically when i'm presented with an len() or [k] in this code how does it...

## how to display asciimath equation in displaystyle (MathJax)

javascript,equation,mathjax
I 'm trying to display an AsciiMath formula in display mode, but whatever I try its still inline Here is my MathJax configuration: MathJax.Hub.Config({ AsciiMath: { fixphi: true, useMathMLspacing: true, displaystyle: true, decimalsign: "." }, extensions: ['asciimath2jax.js'], jax: ['input/TeX', 'input/AsciiMath', 'output/HTML-CSS'] }); And the HTML <p>Once upon a time ......

## Why getting unexpected with loop of URL results when solving equation

java,web-crawler,equation

## In Emacs: how to reference latex equation in text by its number .dvi?

emacs,latex,equation
Suppose, I use Emacs to write a function in latex: $$\label{eq:myeq} x=2y$$ that gives me x = 2y (1) in a resulting .dvi. And suppose I have dozens of such equations. Here is the problem: if I have to reference this equation but don't remember its name I...

## solve symbolic system of equations inside an array

matlab,system,equation
sorry if it already has a answer..i tried other links but it didn't understand i have 2 1*63 array .landa and v. each of their members are syms. and each v member is a function of all landa members.i have already calculated v members and they are all symbolic equations...

## Maxima - Substitutions in Equations - let() and letsimp() without effect

equation,substitution,maxima
My own equation is a bit longer, but the following example shows perfectly where I struggle at the moment. So far I have been using the let() and letsimp() function to substitute longer terms in an equation, but in this example they have no effect: (%i1) eq: ((2*u+a^2+d) * y+x)/2*a...

## split an equation with multicols on

compiler-errors,latex,equation,multicol
I would like to split my large equation in two column. But my file fails to compile when I try to use \{amsmath} and then split, multline, etc... The error says: Package amsmath Error: \begin{multline} allowed only in paragraph mode. \begin{multline} Does someone knows how to split a large equation...

## Program solving equation in Assembly

assembly,equation,tasm,dosbox,operands
I have problem with my simple program in assembly. I'm using DOSbox and TASM . I have problem with program. Operand types do not match at line 76 78 80 . This is after multiplication. I tried to make some changes by using difftrent variable size ; -------------------------------------------- ; Equation=(a+c*b)/d-2*c,...

## Randomly generating equation and answer

java,android,random,equation
I am trying to randomly generate an equation that also has a 50% chance of being wrong and displaying that incorrect answer. The incorrect answer should have an error of either -2, -1, +1, or +2. Sometimes my code prints division equations like this(I can't post images): 2 / 10...