#### Archived

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

# 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.

## 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 on other sites
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 on other sites
Don''t hand out answers to homework questions!

Mark

##### Share on other sites
Yeah, you''re right.

##### 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 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 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.

1. 1
Rutin
42
2. 2
3. 3
4. 4
5. 5

• 9
• 27
• 20
• 9
• 15
• ### Forum Statistics

• Total Topics
633392
• Total Posts
3011639
• ### Who's Online (See full list)

There are no registered users currently online

×