unknown function
I have this unknown math function, and i need to make a function that mimics it''s output fairly close, and all i know is what i get back from what i give it, here''s a list:
unknown(1) = 205
unknown(2) = 260
unknown(3) = 310
unknown(4) = 365
unknown(5) = 425
i know this can be done, but i don''t know how. any suggestions/solutions
Plot the points. "Draw a function" that looks like it will be a good approximation (should be pretty obvious once you've plotted the points).
[edited by - Muzzafarath on June 5, 2004 5:03:25 AM]
[edited by - Muzzafarath on June 5, 2004 5:03:25 AM]
I would write out every solution for you. But even if I did that forever there is no guarantee that I would reach the one you want, as there are uncountably many solutions, even on the integers.
Always ask unknown(0) first.
--
You''re Welcome,
Rick Wong
- Google | Google for GameDev.net | GameDev.net''s DirectX FAQ. (not as cool as the Graphics and Theory FAQ)
--
You''re Welcome,
Rick Wong
- Google | Google for GameDev.net | GameDev.net''s DirectX FAQ. (not as cool as the Graphics and Theory FAQ)
The one and only correct answer is obviously f : x --> unknown(x)
However, you might find interesting to look into various interpolation/approximation techniques (linear interpolation, cubic interpolation, trigonometric interpolation, taylor infinite series, or plain simple lagrange or chebyshev polynomial interpolation).
However, you might find interesting to look into various interpolation/approximation techniques (linear interpolation, cubic interpolation, trigonometric interpolation, taylor infinite series, or plain simple lagrange or chebyshev polynomial interpolation).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement