formula

Converting a formula into PHP

Hi there, I'm trying to convert this adaptive bayesian rating formula into PHP code.. http://cl.ly/cabd3372e2860b52e3db Here are the details of the various parts of the formula.. nvotes : total number of votes so far nlinks : total number of links nvotes(k) : number of votes cast to rth link. deltarank(k, m) : rank increment caused b...

Determine the Scale Factor in Maps

Given only the set of coordinates, is there a way to find the scale factor being used? It will then be used to compute the distances between the coordinates. Let's consider this: On a map scale: (This is the only given) pointA(33.511615, -86.778809) pointB(34.398558, -87.669116) On a real world scale: Distance between the 2 poi...

a simple formula

Hi, I have a for loop which gives a given integer sequence, for fixed parameters N and D : int i = 0, j = 0; for (int k=0; k<N; k++) { sequence[k] = i; if ((i += D) >= N) i = ++j; } I'd like to find a simple formula which reproduces this sequence, depending only on N and D (and the index k), like s...

Print latex-formula with python

Hello! I search the whole time but cannot find it. How to show an easy latex-formula in python? Maybe numpy is the right choice? EDIT: I have a python code like: a = '\frac{a}{b}' and want to print this in a graphical output (like matplotlib). ...

Java 1.5: mathematical formula parser

Hello i often develop JTableModels in which some cells must contain the result of apliying a certain simple mathematical formula. This formulas can have: Operators (+,-,*,/) Number constants Other cell references (which contains numbers) Parameters (numbers with a reference name like "INTEREST_RATE") I often resolve it making a littl...

Using Or and + Criteria in VBA WorksheetFunction.Sumifs

Hi I was wondering if there was a way I could conbine these 2 Macros as I want it to Sum Invoice_list_Price if it has either or both "(Custom) CREDIT" or "CREDIT" Criteria, Thank You. Range("DebtorList_Credit") = Application.SumIfs( _ Range("Invoice_list_Price"), _ Range("Invoice_list_Debtor"), _ Range("Debtor_list_Debtors"), _ ...