Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Visually experience the beauty of mathematics w...

kkeeth
November 19, 2023

Visually experience the beauty of mathematics with p5.js

kkeeth

November 19, 2023
Tweet

More Decks by kkeeth

Other Decks in Programming

Transcript

  1. Visually experience the beauty of mathematics with p5.js 19 Nov,

    2023 JSConf JP @kkeeth @kuwahara_jsri @kkeeth
  2. 3

  3. 4

  4. Undergraduate: Riemann's zeta function (Part of Riemann hypothesis) Graduate Student:

    Knot Theory (Part of Volume conjecture) My Math History
  5. A Million Dollars at Stake. Seven of the most dif

    f icult problems in mathematics One problem (the Poincaré Conjecture) was solved (proved) by Perelman Aside: “millennium prize problems”
  6. setup This function is called once. It's used to de

    fi ne initial environment properties. draw Called directly after setup, continuously executes the lines of code contained inside its block until the program is stopped.
  7. setup This function is called once. It's used to de

    fi ne initial environment properties. draw Called directly after setup, continuously executes the lines of code contained inside its block until the program is stopped.
  8. Equation of a circle x2 + y2 = r2 O

    θ y x r P(x, y) x = ? y = ?
  9. Polar Coordinate System O θ r x = r cos(θ)

    y = r sin(θ) (r ≥ 0) P(r, θ)
  10. Fibonacci sequence 1, 1, 2, 3, 5, 8, 13, 21,

    34... 1 1 , 2 1 , 3 2 , 5 3 , 8 5 , 13 8 , 21 13 , 34 21 . . . 1,2,1.5,1.66,1.6,1.625,1.615,...1.619... → 1.61803
  11. Fibonacci sequence 1, 1, 2, 3, 5, 8, 13, 21,

    34... 1 1 , 2 1 , 3 2 , 5 3 , 8 5 , 13 8 , 21 13 , 34 21 . . . 1,2,1.5,1.66,1.6,1.625,1.615,...1.619... → 1.61803
  12. Fibonacci sequence 1, 1, 2, 3, 5, 8, 13, 21,

    34... 1 1 , 2 1 , 3 2 , 5 3 , 8 5 , 13 8 , 21 13 , 34 21 . . . 1,2,1.5,1.66,1.6,1.625,1.615,...1.619... → 1.61803 Golden ratio ϕ = 1 + 5 2
  13. Lemniscate orthogonal coordinate system (x2 + y2)2 − 2a2(x2 −

    y2) = 0 polar coordinate system r2 = 2a2 cos 2θ
  14. Lemniscate x = a cos(t) 1 + sin2(t) y =

    a sin(t)cos(t) 1 + sin2(t)
  15. References p5.js Get Started • https://p5js.org/get-started/ δΣωϥςΟϒɾΞʔτɹProcessingʹΑΔ࣮ફΨΠυ • https://www.amazon.co.jp/dp/4861009634 Pinterst

    Search(generativeart) • https://onl.tw/2bhH4ZD Openprocessing • https://openprocessing.org/user/299354?o=13&view=sketches 𝕏 hash tag ”#ͭͿ΍͖Processing” • https://x.com/search?q=ͭͿ΍͖Processing&src=typeahead_click&f=live