Browse Search Popular Register Upload Rules User list Login:
Search:
CORDIC sine/cosine algorithm I invented (Which is cheap! :3)

Image:
screenshot of the scene

Author: UnityDogGaming04

Group: Default

Filesize: 16.53 kB

Date added: 2024-09-06

Rating: 5

Downloads: 351

Views: 177

Comments: 5

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

An idea for a sine and cosine algorithm occured to me the other day, so I tried it out by hand, then tested it in python, and it works!
I believe it falls into the category of CORDIC algorithms, iterative algorithms that exponentially approach the correct answer. This means it has an additional parameter that controls how many times to iterate, and therefore, how accurate the answer must be.

Scene explains how it works, and has a function for the 0°-90° range ready to go.
Last edited at 2024/09/10 20:12:12 by UnityDogGaming04
Please log in to rate this scene
edit
Similar scenes
Title: Sine and Cosine visualized
Rating: 5
Filesize: 45.89 kB
Downloads: 1181
Comments: 18
Ratings: 1
Date added: 2022/09/05 04:41:07
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Sine, Cosine and Tangent visualized
Rating: 5.5
Filesize: 13.21 kB
Downloads: 388
Comments: 1
Ratings: 2
Date added: 2023/10/18 07:52:03
Made with: Algodoo v2.1.0
Rating: rated 5.5
download
Title: Cosine Wave
Rating: 5
Filesize: 26.6 kB
Downloads: 482
Comments: 0
Ratings: 1
Date added: 2017/11/12 02:10:45
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Expirementing with tangent, sine, and cosine scripts
Rating: 5
Filesize: 14.96 kB
Downloads: 330
Comments: 6
Ratings: 1
Date added: 2016/01/05 00:45:44
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Tower Takedown (Algodecathlon Day 9)
Rating: 5
Filesize: 44.04 kB
Downloads: 2257
Comments: 3
Ratings: 1
Date added: 2023/06/26 12:00:11
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Simple cosine, sine, and tangent wave generators
Rating: 5
Filesize: 7.03 kB
Downloads: 270
Comments: 2
Ratings: 1
Date added: 2016/05/29 07:06:28
Made with: Algodoo v2.1.0
Rating: rated 5
download
This is cool! Would it be possible to make a scene detailing a square root algorithm? Bonus points if it works for all radicals and not just square roots. :lol: :lol: :lol:
When I run the simulation, the entire thing flies apart and falls down into the infinite depths of Algodoo never-land. What went wrong? :s
Oh right, it's not exactly a scene to /run/, the real asset is the algorithm, and the understanding on how it works.
Implementing Taylor Series for sine and cosine in C also accomplishes the same result, but I like the thought behind, and the brevity of, your algorithm.
Last edited at 2024/09/11 10:09:29 by s_noonan
:3