Generating sine wave

Reply

Join Date: Jun 2007
Posts: 3
Reputation: pretu is an unknown quantity at this point 
Solved Threads: 0
pretu pretu is offline Offline
Newbie Poster

Generating sine wave

 
0
  #1
Jun 4th, 2007
HI All
How can we generate a sine wave without using the sin() function.

Thanks
pretu
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 514
Reputation: Jishnu will become famous soon enough Jishnu will become famous soon enough 
Solved Threads: 26
Jishnu's Avatar
Jishnu Jishnu is offline Offline
Posting Pro

Re: Generating sine wave

 
0
  #2
Jun 4th, 2007
you can use the sine series for calculation upto a certain accuracy and then plot the curve

Originally Posted by pretu View Post
HI All
How can we generate a sine wave without using the sin() function.

Thanks
pretu
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 1,859
Reputation: twomers has a spectacular aura about twomers has a spectacular aura about twomers has a spectacular aura about 
Solved Threads: 55
twomers's Avatar
twomers twomers is offline Offline
Posting Virtuoso

Re: Generating sine wave

 
0
  #3
Jun 4th, 2007
I'm assuming you don't want to use the cosine function either You could create a table of results and read the values off that instead of using the sine function. Alternatively you could use exponentials and imaginary numbers ...
I blag!?
"Mr Kitty, you have to live in the attic now. Here, write a diary."
I am the Walrus!
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,003
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 928
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Generating sine wave

 
0
  #4
Jun 4th, 2007
Take a look at the code snippet at:
http://www.daniweb.com/code/snippet66.html
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Generating sine wave

 
0
  #5
Jun 4th, 2007
What's with all the "how to do x without using the obvious x" questions?
http://www.daniweb.com/techtalkforums/thread80025.html
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC