Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / Formula finder - Finds formula for any sequence of numbers!

Author
Message
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 29th Jun 2007 20:28 Edited at: 29th Jun 2007 20:54
Formula finder

Finds formula for any sequence of numbers, and then displays the first 25 numbers in the sequence using the formula. Please comment

The algorithm used was actually invented by me during a boring maths lesson, so don't be to harsh when judging it!

Here is the code:
(requires IanM's string utility plugin)


If you don't have it, here is the .exe:

edit:
I have found that due to floating point errors, it doesn't work so well with decimals. Whole numbers seem to work fine.

edit2:
Fixed negative sequence bug.

Attachments

Login to view attachments
Sixty Squares
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 3rd Jul 2007 03:55
Very cool I tried the sequence 11,22,44,88 and got odd results. Still, that's a pretty nice program you've got there.

Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 3rd Jul 2007 21:02
@Sixty Squares
Currently, it can only do it for sequences with formulae like this:
?n^? + ?n^? ...

The formula for that is (2^(n-1))*11

Thanks for trying it out

Login to post a reply

Server time is: 2024-05-18 20:24:46
Your offset time is: 2024-05-18 20:24:46