# sin function

Page 1 of 1

## 2 Replies - 2775 Views - Last Post: 17 November 2009 - 04:22 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=139616&amp;s=26c07ded0c96f769d115690cdc1c8553&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 Toba

Reputation: 0
• Posts: 1
• Joined: 17-November 09

# sin function

Posted 17 November 2009 - 01:12 AM

I am having no idea how to make sine function without using math.h library...can anyone please give me a guideline
Is This A Good Question/Topic? 0

## Replies To: sin function

### #2 gronk

Reputation: 13
• Posts: 168
• Joined: 28-October 09

## Re: sin function

Posted 17 November 2009 - 04:13 AM

Use a lookup table of precalculated values, and use linear interpolation to find values that don't exist.

### #3 olibenu

Reputation: 45
• Posts: 538
• Joined: 31-December 08

## Re: sin function

Posted 17 November 2009 - 04:22 AM

ever heard of special angles? 30, 45, 60....
their sine values (also cos & tan) are already known e.g 0.5 etc
u can then use the trig formulae sin(x+y), sin 2x, sin(x-y) etc to find sine of angles such as 15, 75 etc