in reply to Re^2: Reverse engineering a formula...
in thread Reverse engineering a formula...

Consider the case of y = x + r*cos(pi*x) where r is any real, which produces a sine wiggle around a straight line, where the deviation from the straight line is maximum for half-values of y, but for integer values produces the illusion of y=x.

Update oic, you want to limit the types of functions - but without the business knowledge how can you do that? We know it's leasing, but without knowing the business, how do you know it doesn't have a risk component linked to a normal distribution based on the customer's age? That wouldn't be polynomial.

More update: yes fletch is right, s/cos/sin/ - my brain did the equivalent of a double negative when I was imagining this.

-M

Free your mind

Replies are listed 'Best First'.
Re^4: Reverse engineering a formula...
by Fletch (Bishop) on Jun 13, 2006 at 15:20 UTC

    ITYM sin not cos; the former intersects y=x for integers, while the later intersects for multiples of 0.5. And the extremums would be at n + (-1)n sin-1( 1 / rπ )/π (for integer n).

    </pedant> :)

    Update: Gah, I had rather than because I used that as the constant when I checked things.

Re^4: Reverse engineering a formula...
by vkon (Curate) on Jun 13, 2006 at 16:00 UTC
    I think you understand my point (sorry for unperfect English) - sometimes tasks for finding a next number in some sequence of numbers are not useless, and such tasks help training ones brains.
    OP has many flaws, and this is not really the sequence problem, and "Reverse engineering a formula" is a bad description of the problem

    As a different note, our teacher said to us that the PI number contains, for example, encoded in it entire "War and Peace" by L.Tolstoy, starting from some position... you only need to find that N and enjoy the reading :)
    While this is theoretically true, how can you benefit from this knowledge?
    :) :)

      The pusillanimous goal of practising simple logical thinking (e.g. picking the easy option given a number sequence) pales to too little as compared with the value of using more comprehensive thinking to explore a subject, this being undermined by reaching an answer too superficially or habitually, because that in turn psychologically blocks further opportunity to see the bigger picture.

      In this case, the OP needs at least to gather more information rather than find a logical substitute.

      See Six Thinking Hats by Edward de Bono for a more precise and comprehensive evaluation of what missed opportunities are at stake.

      -M

      Free your mind