Computer Science Canada

How to draw an animated graph to represent a ripple being reflected?

Author:  8749236 [ Fri Dec 31, 2010 9:15 pm ]
Post subject:  How to draw an animated graph to represent a ripple being reflected?

What is it you are trying to achieve?

i have some trouble on practicing programming... is have a Tutorial, and there are some exercise questions in that tutorial, and the question i don't know how to do is:


15.Draw an animated graph to represent a ripple being reflected
from the top of the window when the wave of the program
ripple in this chapter strikes it. What happens when you let the
original ripple go on out beyond the top of the window?


What is the problem you are having?
The problem i got is i don't know how to do the calculations to make the system work like ripple reflect when they collide on the border..


Describe what you have tried to solve this problem
i was thinking to use a silly way to make this system works(make many many circles and let them getting larget and larget from the outside borde.....r) but i think theres a better way to do it..

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)

sorry i don't have code now...

Turing:


<Add your code here>



Please specify what version of Turing you are using
Turing 4.1.1

Author:  Tony [ Fri Dec 31, 2010 9:23 pm ]
Post subject:  RE:How to draw an animated graph to represent a ripple being reflected?

sin is a good function to be familiar with http://en.wikipedia.org/wiki/Sine_wave

Author:  8749236 [ Fri Dec 31, 2010 9:33 pm ]
Post subject:  RE:How to draw an animated graph to represent a ripple being reflected?

don't understand...
i didn't even know how to use the equation...
-.-

Author:  Tony [ Fri Dec 31, 2010 9:45 pm ]
Post subject:  RE:How to draw an animated graph to represent a ripple being reflected?

See sin and Wikipedia: Sine

Author:  8749236 [ Fri Dec 31, 2010 9:51 pm ]
Post subject:  RE:How to draw an animated graph to represent a ripple being reflected?

i still don't know how to use this equation (code) in my program...
i don't understand this code
i don't understand the equation..
u only say: see this.. see that..
i don't understand because i don't understand it at the start, and now u want me to read it and understand it, how??
also my english is not good i can't understand the info in Wikipedia..

Author:  Tony [ Fri Dec 31, 2010 10:30 pm ]
Post subject:  RE:How to draw an animated graph to represent a ripple being reflected?

It's a function. You put numbers in, and waves come out. I suppose you don't really need to know how exactly the function works on the inside. This code might be of interest to you.

Author:  TokenHerbz [ Sat Jan 01, 2011 2:29 am ]
Post subject:  RE:How to draw an animated graph to represent a ripple being reflected?

Tony, even tho your awesome and all, you should just post (explinations for your) code for ppl's project without them knowing how the code works.

maybe expain how it works also be must more effect cause he wont learn anything... (no offence --> <3 you)

Author:  Tony [ Sat Jan 01, 2011 2:47 am ]
Post subject:  RE:How to draw an animated graph to represent a ripple being reflected?

It's a function. It describes a circle. This used to be taught at grade 10 math level. It looks something like this:
Posted Image, might have been reduced in size. Click Image to view fullscreen.

Author:  8749236 [ Sat Jan 01, 2011 4:22 pm ]
Post subject:  RE:How to draw an animated graph to represent a ripple being reflected?

the procedure is to creat a "code" right??
i think i misunderstanding this question..
and i think.. my teacher didn't taught us how to use "procedure"..


and can u explain what does each codes do???


: