An extremely efficient sine approximation
https://bmtechjournal.wordpress.com/2020/05/27/super-fast-quadratic-sinusoid-approximation/
may 2024 ‧ twitter imported ‧ open in karakeep
From X bookmark — @SebAaltonen (Sebastian Aaltonen), May 15 2024
https://x.com/SebAaltonen/status/1790822571937562744
The article presents a simple and efficient quadratic polynomial approximation for the sine function, defined as fakeSin(x) = x(1 - abs(x)) on the range [-1,1], which closely resembles a sinusoid and is computationally cheap. To handle inputs outside this range, a range limiter function using floating-point modulo is introduced, enabling a fast sinusoid oscillator implementation. Although floating-point division (used in modulo) is typically slow, vectorized processing and alternative implementations can mitigate this cost. The method offers a practical trade-off between accuracy and computational efficiency, especially useful in audio signal processing.
A google search for the simplest, most efficient polynomial approximations to a sine-wave reveals many algorithms of the following two types: Quadratic functions that require branching using the if…
*bookmark *download *tobuy *tofollow 2d 360 3d 3dprinting abandonware actionscript air algorithm android api app apple appstore arcade arduino art article askreddit asm audio automation backlight backup bambulab bbs berlin bitcoin blipfm blipster blog bluetooth book bookmark bootcamp brasil bug c c# c++ carro casa chiptune claudeai cocoa cocoa-touch code collection component controller css database debug demoscene design deutschland dev diy doc dos dosbox dotnet download electronics emu emudev emulation emulator example famicom feedbin fix flash flex forum freeware gadget game gameboy gamecollecting gamedev germany git GoogleReader hack hacks hardware home home-automation homeassistant homebrew howto htpc http IFTTT image imported inspiration ios iosprogramming ipad iphone iso itunes jailbreak japan java javascript lcd lib library linux mac mame math mce mediacenter megadrive midi mod mp3 mpd music mythtv nas nes objective-c opengl opensource osx pc piracy plex plugin Pocket programming ps2 ps3 ps4 pvr raspberrypi recipe reddit reddit-comment reddit-post remote repro resource retrogaming retropc retropie rgb roms rubyonrails saopaulo sdk shmups shop shopping sms snes software soundblaster source star steamdeck svn swift synology synth terminal tips tool toread torrent travel tutorial twitter twitter-post ubuntu ui uitableview unix unlock veralite viagem vista vita vpn vps walkthrough warez web2.0 webservices wii windows wishlist wordpress xbmc xbox xcode xna z80