Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size optimize sin.fs #474

Open
jkotlinski opened this issue Aug 23, 2022 · 1 comment
Open

Size optimize sin.fs #474

jkotlinski opened this issue Aug 23, 2022 · 1 comment

Comments

@jkotlinski
Copy link
Owner

jkotlinski commented Aug 23, 2022

sin.fs takes 2.7K on disk, that is more than needed.

An obvious optimization is to only store the first quarter and extrapolate the others.

Other ideas are possible, for example reuse BASIC SIN.

@IanWitham
Copy link

One solution could be to expose the Kernal trig routines and possibly provide helper words to precompute tables of a given length if needed.
e.g. sintbl ( length -- addr )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants