Skip to content

Shree-Organization/Vector-Operations-Explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

🧮 Vector Operations Explorer

A Class 11 Mathematics + Physics Project built using Python — explore vectors interactively with dot product, cross product, magnitude, angle, and optional 2D/3D visualization! 🚀


🧠 Overview

Vector Operations Explorer is a simple and interactive Python project that helps Class 11 students understand and visualize vector mathematics.

This tool allows users to perform:

  • Dot Product
  • Cross Product
  • Magnitude Calculation
  • Angle Between Vectors (Radians or Degrees)
  • Optional 2D or 3D Vector Plotting

It is built using Python, NumPy, and Matplotlib, making it easy to run and expand.


⚙️ Features

  • ✅ Compute dot product of two vectors
  • ✅ Compute cross product (2D & 3D supported)
  • ✅ Find magnitude of each vector
  • ✅ Calculate angle between vectors
  • ✅ Optional 2D/3D visualization using Matplotlib
  • ✅ Clean, well-structured Python script

📊 Demo Output

Example (Input vectors: A = [3, 4], B = [-1, 2]):

Vector A: [3. 4.]
Vector B: [-1.  2.]
Magnitude A: 5.000000
Magnitude B: 2.236068
Dot product: 5.000000
Cross product: 10.0
Angle between (in degrees): 63.434949

2D Plot Example

AdobeExpressPhotos_3ba1ef7826a040049baf7d88975dbfb8_CopyEdited

3D Plot Example

Screenshot 2025-11-24 154007

🧩 How to Run

1. Clone the Repository

git clone https://github.com/himalipatil25/vector-operations-explorer.git

2. Install Dependencies

pip install numpy matplotlib

3. Run the Script

python vector_operations_explorer.py --v1 "1,2,3" --v2 "4,5,6" --plot 3d

You can also run silent mode (JSON output):

python vector_operations_explorer.py --v1 "3,4" --v2 "-1,2" --silent

🧰 Tech Stack

  • 🐍 Python 3.x
  • 🔢 NumPy (vector math)
  • 📊 Matplotlib (optional visualization)

🎯 Educational Purpose

This project helps students understand:

  • Vector algebra clearly
  • Visualization of spatial vectors
  • How Python can solve mathematics problems
  • Basics of using external libraries (NumPy + Matplotlib)

👩‍💻 Authors

Mantra Patil

Himali Patil


✨ If you like this project, give it a ⭐ on GitHub! ✨

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages