Interactive field manipulation with real-time mathematical computation
Set order to 1 for classic dipole electrostatic field with two-lobe pattern
Set order to 2 for four-lobe field pattern with alternating positive/negative regions
Higher orders create complex multi-lobe patterns representing higher-order charge distributions
Recursive function updates employ forward recursion with coefficient caching to minimize computational overhead. Intermediate values are stored for efficient parameter sweeping and animation rendering.
Graphics rendering uses HTML5 Canvas for field line generation and real-time updates. Optimized for smooth animation at 60fps with dynamic parameter changes.
Optimal performance achieved with recursion orders n ≤ 15 and grid resolutions below 200×200 pixels. Memory usage scales linearly with field resolution.
All calculations maintain double-precision floating-point accuracy suitable for display-level visualization. Functions use analytical expressions without empirical fitting.