3 ms·
That vector field one is really neat. https://anvaka.github.io/fieldplay/?cx=-0.4690500000000002&cy=0.3672500000000001&w=15.8023&h=15.8023&dt=0.01&fo=0.998&dp=
by harshreality 7y ago
That vector field one is really neat.
https://anvaka.github.io/fieldplay/?cx=-0.4690500000000002&cy=0.3672500000000001&w=15.8023&h=15.8023&dt=0.01&fo=0.998&dp=0.009&cm=1&vf=%2F%2F%20p.x%20and%20p.y%20are%20current%20coordinates%0A%2F%2F%20v.x%20and%20v.y%20is%20a%20velocity%20at%20point%20p%0Avec2%20get_velocity%28vec2%20p%29%20%7B%0A%20%20vec2%20v%20%3D%20vec2%280.%2C%200.%29%3B%0A%0A%20%20%2F%2F%20change%20this%20to%20get%20a%20new%20vector%20field%0A%20%20v.x%20%3D%200.2%20*%20%28%20p.y*p.y*p.y%20-%20p.x*p.x%20-%20p.y*p.y%20%2B%20p.y*p.x%20-%20p.x*p.x*p.x%20%29%3B%0A%20%20v.y%20%3D%20-0.2%20*%20%28p.y*p.y*p.x%20%20-%20p.y%20-%20p.x%20%29%3B%0A%0A%20%20return%20v%3B%0A%7D&code=%2F%2F%20p.x%20and%20p.y%20are%20current%20coordinates%0A%2F%2F%20v.x%20and%20v.y%20is%20a%20velocity%20at%20point%20p%0Avec2%20get_velocity%28vec2%20p%29%20%7B%0A%20%20vec2%20v%20%3D%20vec2%280.%2C%200.%29%3B%0A%0A%20%20%2F%2F%20change%20this%20to%20get%20a%20new%20vector%20field%0A%20%20v.x%20%3D%200.2%20*%20%28%20p.y*p.y*p.y%20-%20p.x*p.x%20-%20p.y*p.y%20%2B%20p.y*p.x%20-%20p.x*p.x*p.x%20%29%3B%0A%20%20v.y%20%3D%20-0.2%20*%20%28p.y*p.y*p.x%20%20-%20p.y%20-%20p.x%20%29%3B%0A%0A%20%20return%20v%3B%0A%7D https://anvaka.github.io/fieldplay/?cx=-0.4690500000000002&c...
- anvaka 7y agoThank you! Amazes me how some people use it creatively to teach ordinary differential equations https://twitter.com/sxpmaths/status/1192079061025263616?s=19 https://twitter.com/sxpmaths/status/1192079061025263616?s=19