aspose file tools*
The moose likes Java in General and the fly likes how to write sine wave algorithm code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to write sine wave algorithm code" Watch "how to write sine wave algorithm code" New topic
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: 24166
    
  30

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to write sine wave algorithm code
 
Similar Threads
The Geography of a Woman
Math functions cosine problems
Sine wave
how to plot sin wave ...
Scrabble... it only takes a minute...