Page 1 of 1

math question

Posted: Mon Jun 08, 2009 9:07 am
by deadalvs
hi !

i am searching the mathematical function based on the standard sine, which changes the form from the normal swinging curve to this profile, oscillating between 1 and -1 but with harder curves and straight parts.
-->
http://www.rheinzink.ch/zoom_1019.aspx

i know i've seen that before, but i cannot find the answer ..

any input welcome !
:roll:

Re: math question

Posted: Mon Jun 08, 2009 1:40 pm
by rmw
Like a square wave made from sin waves?

Use a sine wave with the same properties as the square wave (frquency,amplitude) as the base and then add harmonics of the base wave with decreasing amplitudes.

Image
From http://en.wikipedia.org/wiki/Square_wave

Re: math question

Posted: Mon Jun 08, 2009 2:17 pm
by deadalvs
thanks for that link.

i got an other input that also uses this approach, the problem that remains is that the negative areas always have the same length as the positive areas. i need some sort of smaller beveled gap so it looks like constructed.

i helped myself by modeling those profiles with a curve, but the mathematic approach would still be interesting !

with two harmonics the result can look pretty convincing.
:)