Google Classroom
GeoGebraGeoGebra Classroom

Simple 3D Vector Field

Script Setup version 1

Fx(x, y, z) = x Fy(x, y, z) = y Fz(x, y, z) = z L = Sequence(k, k, -3, 3, 2) LP = Flatten( Zip( Zip( Zip( (a, b, c), a, L ), b, L ), c, L ) ) s = 0.5 VF = Zip(Translate(s * (Fx(P), Fy(P), Fz(P)), P), P, LP)

Script Setup version 2

Fx(x, y, z) = x Fy(x, y, z) = y Fz(x, y, z) = z L = Sequence(k, k, -3, 3, 2) LP = Flatten( Zip( Zip( Zip( (a, b, c), a, L ), b, L ), c, L ) ) s = 0.5 LQ = Zip((s * Fx(P), s * Fy(P), s * Fz(P)), P, LP) VF = Zip(Vector(P, P + Q), P, LP, Q, LQ)
If you like my work, you can support me in Patreon: https://www.patreon.com/jcponce