| Author |
how to write sine wave algorithm code
|
ilyas besli
Greenhorn
Joined: Sep 13, 2007
Posts: 9
|
|
I have a problem. My course homework is about draw sine wave and I must do this in java. How do I do this. for any help, Thanks...
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24081
|
|
|
Well, do you know how to write a program that draws a line, circle, or other picture?
|
[Jess in Action][AskingGoodQuestions]
|
 |
ilyas besli
Greenhorn
Joined: Sep 13, 2007
Posts: 9
|
|
yes, I know draw line, oval, rectangle etc. But I could not understand how to draw sine wave.
|
 |
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
|
|
Something like this? I'm sure you'll have to multiply x & y by some scale to make it fit the screen. Give it a try and show us what you make. Then we'll know exactly where you're stuck. Or not!
|
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
|
 |
 |
|
|
subject: how to write sine wave algorithm code
|
|
|