Top "Formula" questions

A formula is a mathematical equation or expression that performs various operations on variables to produce an outcome.

Too many 'if' statements?

The following code does work how I need it to, but it's ugly, excessive or a number of other things. …

if-statement math formula
How to calculate the explicit form of a recursive function?

I have this recursive function: f(n) = 2 * f(n-1) + 3 * f(n-2) + 4 f(1) = 2 f(2) = 8 I know from experience that explicit form …

recursion formula explicit
Separate octets of IP address using formulas

I want to separate out the octets of an IP address using Formulas. I have tried some things like substitute &…

excel excel-formula formula excel-2013
Get formula from Excel cell with python xlrd

I have to port an algorithm from an Excel sheet to python code but I have to reverse engineer the …

python excel formula xls xlrd
What does the R formula y~1 mean?

I was reading the documentation on R Formula, and trying to figure out how to work with depmix (from the …

r formula
The last & the first day of a month in Google Spreadsheets

What is the way to get the first and last day of the previous month in Google Spreadsheet? I tried …

google-sheets formula worksheet-function
How to convert meters to miles

I want to convert meters to miles in JavaScript. For example 12700 meters is 7.8867 miles. What formula can I use to …

javascript distance formula
How to calculate Number of 'Working days' between two dates in Javascript using moment.js?

How to calculate the number of working days between two dates in JavaScript using moment.js. I have a working …

javascript date formula momentjs
How to calculate distance based on phone acceleration

I want to build something like this but using an android phone: http://www.youtube.com/watch?v=WOt9mb5…

android distance formula acceleration
How to do a fractional power on BigDecimal in Java?

In my little project, I need to do something like Math.pow(7777.66, 5555.44) only with VERY big numbers. I came across …

java formula bigdecimal pow