dwitter.net | #math

+ New dweet
function u(t) {
} //
122/140


Please log in (or register) to post a dweet (copy-paste the code somewhere safe to save it meanwhile)


u(t) is called 60 times per second. t: Elapsed time in seconds. S: Shorthand for Math.sin. C: Shorthand for Math.cos. T: Shorthand for Math.tan. R: Function that generates rgba-strings, usage ex.: R(255, 255, 255, 0.5) c: A 1920x1080 canvas. x: A 2D context for that canvas.
Current theme challenge: #ScaryMovies
show FPS hide FPS share fullscreen

function u(t) {

}//
126/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Prime fun 3 / 3 - when X is less than Y, then X modulo Y gives X, so we see the normal vertical prime stripes, white shows X is a prime. not sure about the rest, there seems to be a large white line around the line where X equals Y, #math #primes

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
126/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Prime fun 2 / 3 - Normally X binary XOR with Y produces a single white line, but if we only draw black when X XOR Y is a prime number, then we get a pattern. #math #primes

Please log in (or register) to comment.


function u(t) {

}//
128/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Prime fun 1 / 3 - This is the standard X&Y (binary AND) Sierpinski triangle picture but only where X & Y is a prime number. perhaps revealing a relationship between primes and binary AND #math #primes
  • u/donbright
    (note white = X&Y is prime, black = X&Y is composite)
  • u/andrea270872
    this is really nice. retro and mathsy at the same time!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
137/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Sorting the four fours numbers! #waitforit #math #puzzle. This is an automatic program that will throw the list of natural numbers written as javascript expressions that eval that number! To view the code, replace eval with throw
  • u/katkip
    example print: 1 = 44/44 2 = 4/4+4/+4 3 = 4+~44%4 4 = ~44%~4^4 5 = 44%4-~4 6 = 44/4+~4 7 = 44/4-4 8 = 4+4//-/^*4^*4 9 = 4/4+4+4
  • u/KilledByAPixel
    nice!
  • u/katkip
    looks like it gets stuck at 17
  • u/katkip
    17 = 4^4*4-~4 18 = 4-~4+4-~4 19 = ~-4^~-4*4+4 20 = 4&4^4*4 21 = 4/4-~4*4
  • u/katkip
    nvm. stuck at 22

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
138/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • derivative calculator! d(function, location) will calculate the derivative at function(location)! #math

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
67/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • from chaos to order, wait for it

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
135/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Pendulum Synch - Kuramoto Model
  • u/Qwerasd
    This is really cool.
  • u/katkip
    #math is awesome
  • u/iverjo
    Explanation?
  • u/rodrigo.siqueira
    The Kuramoto Model describes how small interactions between oscillators can lead to synchronization between them. E.g. flashing of fireflies, group of metronomes, neural network of spiking neurons can sync after a period. Oscillatory neural networks are a promising field for future research in both natural and Artificial Intelligence
  • u/lionleaf
    Here's a recent youtube movie that's relevant, and perhaps an inspiration: https://www.youtube.com/watch?v=J4PO7NbdKXg #pendulum

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
137/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

Please log in (or register) to comment.

Loading...
Next page