Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

crucifixion

unknown function

This topic is 5280 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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).



Share this post


Link to post
Share on other sites
Thank you all.

I will plot the points. However what i was looking for was an interpolation/approximation technique.

This is for a game I''m making, not a homework assignment.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!