You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
- $\begingroup$ Thanks for the input about the signal symmetry. My main goal though is to understand how sin and cos can synthesize an almost perfect square wave mathematically. As the attached FFT results show, this square wave seems to be composed of 2 cos and 2 sin (fundamental + 3rd harmonic in this example), but I am missing the equation that synthesizes the final square wave from the components. $\endgroup$Yaz– Yaz2023-10-07 06:24:30 +00:00Commented Oct 7, 2023 at 6:24
- $\begingroup$ You can build ANY periodic function from sines and cosines. That's the whole idea of the Fourier Series. The square wave is probably the most common text book example. See for example mathsisfun.com/calculus/fourier-series.html. This is one example for a "orthogonal basis": you can construct any function from a set of basis functions as long as they are "orthogonal", which is a very useful mathematical concept. Sines, cosines and complex sines at different frequencies are indeed orthogonal (with the right choice of interval). $\endgroup$Hilmar– Hilmar2023-10-07 12:27:15 +00:00Commented Oct 7, 2023 at 12:27
- $\begingroup$ Hi. I understand the concept of Fourier transformation and I am aware that I can build a square wave by summing scaled sines (fundamental and harmonics), but I am not aware of a square wave that can be built through sin and cos together, which more or less look like the ones provided in the figure above. This question is about having the analytical equation that produces such a square wave: meaning, writing down the sin and cos whose summation is a square wave analytically. If you can provide these equations, it would be very appreciated. $\endgroup$Yaz– Yaz2023-10-08 08:38:58 +00:00Commented Oct 8, 2023 at 8:38
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
- MathJax equations
$\sin^2 \theta$
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. image-processing), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you