A Non-sinusoidal waveform model

AI Thread Summary
A ninth-grade student from Portugal is attempting to create a regression algorithm in Desmos to fit random binary inputs and predict future binary digits. They are seeking a model for generating non-sinusoidal waves, as their current approach based on Fourier's theorem is not yielding satisfactory results. Feedback suggests that their example is too linear and not representative of the desired output, with specific concerns about the parameters used. Additionally, there is skepticism about the feasibility of predicting future binary digits from random inputs. The discussion highlights the challenges of modeling non-sinusoidal waveforms effectively.
P3dr0
Messages
1
Reaction score
0
Hi, I am a ninth-grade student from Portugal with nothing to do, and I have decided that I want to build a simple regression algorithm in Desmos (the online calculator) to fit random binary inputs and maybe predict the next binary digits (although that part may take a considerable amount of time). For now, I am just trying to find a way to create non-sinusoidal waves, but I can't find any model for it. Can anybody tell me a simple yet effective model for what I am trying to achieve?
PS: I have created an algorithm based on Fourier's theorem, but it doesn't work quite well. (I'll attach a photo and a link of what I have done.) This is the simplest version I have created so far, but I have tried other parameters. However, when I add more elements (more parameters), the function becomes noisier.

Link: https://www.desmos.com/calculator/h3nww18l8p
 

Attachments

  • Captura de ecrã 2024-04-03 190941.png
    Captura de ecrã 2024-04-03 190941.png
    11.9 KB · Views: 76
Mathematics news on Phys.org
What you have done is perfectly correct, but I am not sure that it is a good example of what you want to do. Notice that your example is perfectly linear with a slope of 1 and very near the (x=0, y=0) origin. The sin() function is also very linear with a slope of 1 near the origin. The tiny value of ##b## means that the inputs of sin() will be very close to 0 and the large value of ##a## means that the slope will be close to 1. If ##a=1/b##, the slope would be exactly 1 at the origin.
 
Welcome to PF.

P3dr0 said:
to fit random binary inputs and maybe predict the next binary digits
If the inputs are random, how can you do any predictions for future digits?
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top