Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your **free** account and access **expert** answers to this and **thousands** of other questions.

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Join Brainly to access

this expert answer

SEE EXPERT ANSWER

To see the **expert** answer you'll need to create a **free** account at **Brainly**

What do we get to assume?
That the function uses rounding and is linear?

look up floor function it may help

B= roundeddown((H+2)/10)
will also generate the same table

So, from the given table u cannot find a uniqe formula

It appears it would have to be recursive due to the way that b relies on the value of h...

Interesting...

If anyone can generate a straightforward formula for this I would love to see it!

I would be willing to put some prize money... lol

@LogicalApple Did you use any memoization/caching, or did it have to do redundant recursive calls?

No caching just plain recursion. I once tried to program an Ackermann function ...

@patdistheman
Send me a link.

Of what wolfram alpha?

http://www.wolframalpha.com/input/?i=fit+%280%2C0%29+%281%2C5%29+%282%2C10%29+%283%2C15%29

yeah, wolfram alpha coming up with a formula that has a floor function.

ah, I see.