Inspiration

I want to build a precise sine calculator that uses bisection and Divided and Conquer.

What it does

It takes in any angle from 0 to 90 degrees and calculates its sine value.

How we built it

Using bisection, we get sin(a/2) from sin(a) from the starting point a=90. We increment each sin(a/2^n) chunk to get the final result using the sine addition formula.

Challenges we ran into

Accomplishments that we're proud of

We are able to make our precision to the 18th digit after the decimal point.

What we learned

In order to accomplish a complex task, we can use Divide and Conquer. We can divide the problem into smaller parts(usually halves) and aggregate them to obtain the final result.

What's next for Sine caluclator

We can update it by allowing any given angle to be the input, so that the user doesn’t need to map the sin(a) to an equivalent sin(b) such that 0<=b<=90.

Built With

Share this project:

Updates