ScratchData LogoScratchData
Back to Flash_Programmer's profile

Gregory Newton Polynomial Interpolation

FLFlash_Programmer•Created October 18, 2022
Gregory Newton Polynomial Interpolation
6
5
45 views
View on Scratch

Instructions

It's like lagrange interpolation, I think Use mouse to move around the graph and window Use the scroll wheel to zoom in and out Hold space and click to place a point Hold 'a' while holding a point to snap it to the grid Hold 'x' and click a point to delete it (or hold x and click a row in the table to delete it) Use the left and right arrows to select window (data) run on turbowarp for speed (and hq pen which I have become addicted to): https://turbowarp.org/747381528?hqpen If you want to use it to 'find the next item in a sequence' just put ascending integers in the X column and the sequence in the Y column and then do the next integer and leave the Y column blank to autofill it with the same curve. Like if the sequence was 90, 70, 40, 40, and you want to know what the next thing is just do X = {1, 2, 3, 4} and Y = {90, 70, 40, 40} and then add a new X = 5 and leave Y blank and it will tell you the next item is 110. Do this to stock prices to unlock the hidden secret investors don't want you to know about. It has an enhanced method for adding a point which is faster than generating the full polynomial from scratch (the advantage of gregory newton over lagrange). It also has a derpy polynomial expander that is my own algorithm. It can expand polynomials in the form a(x + b) * c(x + d) * e(x + f)... for an arbitrary number of terms.

Description

This project is released in an early state Planned features: Clickable data cycling (right now you can use the left and right arrows) Fraction/rational coefficient display Fixes to the graphing (edge glazing) Smarter precision calculations (It's quite slow when zoomed far out but this doesn't need to be the case, perhaps I can make use of sequence derivatives *wink*) I probably want to get around to updating my old text engine, maybe throw in some curves I used some dubious methods for window resizing and moving which are based on frame by frame changes in mouse position which can fail in some circumstances. I would not recommend using these sorts of techniques as they can become offset by constant factors, though they do have certain advantages. I might change these later as well The table window has an artifact below it to cover text bleeding. I'd love to get rid of it but I would have to add additional features to the text engine, such is the life of a scratcher eh Update log: 29.10.22: Added resolution slider 28.10.22: Added file menu (settings button doesn't do anything because there are no settings) 23.10.22: Small changes 21.10.22: Added table and many fixes and polishing features 21.10.22: Released

Project Details

Project ID747381528
CreatedOctober 18, 2022
Last ModifiedMarch 12, 2023
SharedOctober 21, 2022
Visibilityvisible
CommentsAllowed