We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › Book error / typo, of sorts / sine wave graph
Page Index Toggle Pages: 1
Book error / typo, of sorts / sine wave graph (Read 987 times)
Book error / typo, of sorts / sine wave graph
Jun 9th, 2008, 6:10pm
 
hi,

i did a search but did not see anything on this. Didn't fill a bug report b/c its not really a bug w/ code, but anyhow

p. 118

I think the graph of the sine wave is wrong

e.g. sine 90 degrees = 1, or in processing println(sin(HALF_PI)); returns 1, but on graph p. 118, 90 / half pi is shown as -1, and therefore the 270 degrees is also in wrong position.

The language in the short section underneath also seems to match the incorrect values on the graph, talking about increasing/decreasing amplitude but in the wrong place for a sine wave.

not a huge deal but for someone like me who is not strong in math it was pretty confusing when reading the book and seeing the values returned from sin() and cos() for the first time.

thanks
Re: Book error / typo, of sorts / sine wave graph
Reply #1 - Jun 9th, 2008, 10:08pm
 
yup, just looked at my copy of the book, looks like a cosine wave to me.
Re: Book error / typo, of sorts / sine wave graph
Reply #2 - Jun 9th, 2008, 10:21pm
 
http://dev.processing.org/bugs/show_bug.cgi?id=708
Page Index Toggle Pages: 1