Skip to content
View jonas1ara's full-sized avatar

Block or report jonas1ara

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
jonas1ara/README.md

Jonas Lara

GitHub

Fourier series, a poem ...

The Fourier series is a branch of Fourier analysis that aims to decompose a periodic function into a sum of exponentials (or trigonometric functions) with different frequencies and magnitudes, in this particular demonstration, we are defining $f(t)$ to be a periodic complex function with $t\in[0, 1]$

Represent $f(t)$ as a sum of exponential functions rotating at frequencies of $0, 1, -1, 2, -2, ...$ rotations per $t$:

$$ f(t) = \dots + c_{-2}e^{-2\cdot 2\pi it} + c_{-1}e^{-1\cdot 2\pi it} + c_{0}e^{0\cdot 2\pi it} + c_{1}e^{1\cdot 2\pi it} + c_{2}e^{2\cdot 2\pi it} + \dots $$

Taking the integral of the function across its domain:

$$ \int_0^1 f(t) dt $$

Expanding $f(t)$ in terms of its Fourier series:

$$ \int_0^1 f(t) dt = \int_0^1 (\dots + c_{-1}e^{-1\cdot 2\pi it} + c_{0}e^{0\cdot 2\pi it} + c_{1}e^{1\cdot 2\pi it} + \dots)dt $$

Distributing the definite integral:

$$ \int_0^1 f(t) dt = \dots + \int_0^1c_{-1}e^{-1\cdot 2\pi it}dt + \int_0^1c_{0}e^{0\cdot 2\pi it}dt + \int_0^1c_{1}e^{1\cdot 2\pi it}dt + \dots $$

If you want to understand the intuition behind this and why math behaves like art, read my thoughts on: Fourier series in a poetic and mathematical way.

Blog

If you are interested in maths and computer science topics, you may be interested in my blog: jonas1ara.github.io

Pinned Loading

  1. 73 73 Public

    The 73 most useful LeetCode problems implemented in C# and F#

    C# 148 15

  2. ATC ATC Public

    Algebraic Tiny Compiler - Understanding compilers through algebra

    F# 5

  3. Glance Glance Public

    A fast, lightweight, and modern PDF viewer for Windows 11 built with WinUI 3, Mica transparency, and native page-by-page annotation tools.

    C# 4 1

  4. FSynapse FSynapse Public

    A minimalist lab for neural architectures in F#

    F# 27 1

  5. Mnist.cs Mnist.cs
    1
    #:package System.Numerics.Tensors@11.0.0-*
    2
    
                  
    3
    using System;
    4
    using System.Buffers.Binary;
    5
    using System.IO;
  6. MicroGPT.fsx MicroGPT.fsx
    1
    #!/usr/bin/dotnet fsi
    2
    
                  
    3
    open System
    4
    open System.Collections.Generic
    5
    open System.Globalization