1
vote
2answers
44 views

Creating a mathematical formula to price a taxi booking

I've been asked to create a mathematical formula that will be used to price taxi bookings at a local taxi company. Current system used: A table is used as a reference Variables: x is the ...
3
votes
1answer
107 views

Iterative model fitting

I have a sequence of points $\{(x_k,y_k,z_k)\}$ and I need to fit some $2D$ model $P(x,y)$ that approximates $z$ in some sense. The $z_k$$'s$ are noisy samples of some $2D$ function $z_k = f(x,y) + ...
-4
votes
2answers
409 views

How do I turn this piecewise function into a “normal” function?

I am a Java developer building a web app that I will be deploying "in the cloud" (I hate that expression) in a few months. I'm trying to develop a function that will let me spawn and kill the right ...
0
votes
0answers
52 views

How are these operations the same? How to convert a multiplication in a different form?

I am reading on a specific operation, how it should be done in order to avoid overflow during multiplication. The operation is: $$( A * \text{state} ) \% M;$$ This is susceptible to overflow. The ...
0
votes
1answer
99 views

Development of a specific hardware architecture for a particular algorithm. Modelling fuctions by Taylor sSeries.

I'm trying to develop a architecture hardware to make a implementation of an algorithm that can be descompose in terms of sums, multiplications, subtractions and exponential functions. I'm trying to ...