Skip to main content

Mathober2026_NiceVectorfields

Fields all over

Updated 1 min readMarkdown
Mathober2026_NiceVectorfields

UnNiceVectorFields

For my 25th sketch of Mathober2026 coded in Python and aided with Glitchlab, UnNiceVectorFields follows a disorganized set of vector fields (Day 20 of Mathober).

Poetry

Vectors dictating the Pattern shown
Showcasing the flow
But what if the fields don’t follow?
What if this zone,
Is a scalar unknown?

Video

https://youtube.com/shorts/WQjAUvSbarA

\

Code


import numpy as np
import matplotlib.pyplot as plt

#grids
x, y = np.meshgrid(np.linspace(-15, 15, 10), 
                   np.linspace(-15, 15, 10))

# Directional vectors
u = (x + np.cbrt(x**5 / y**4)) * np.tan(-y) * 0.75
v = np.hypot(y,x/3) ** np.sin(y) ** 5
t = np.sin(x) / np.hypot(1,np.tan(y))

#Vector fields Mashed up
plt.quiver(x, y, u, v, color='b')
plt.quiver(x, y/t, u, v, color='r',headwidth = 4,headaxislength = 2)
plt.quiver(x, y, t, v, color='c',headwidth = 12)
plt.quiver(x, y, t/u, v/u, color='y',headwidth = 6, headaxislength = 8)
plt.title('UnNice Vector Fields')

#limits
plt.xlim(-30, 30)
plt.ylim(-30, 30)

#display
plt.show()

No comments yet. Be the first to comment.