Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

prxcode/m3studio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math Solver Studio

Version: 1.0 Developer: Priyanshu (prxcode) Domain: Mathematics / Computer Science


Overview

Math Solver Studio is an interactive Python application that allows users to:

  • Solve Ordinary Differential Equations (ODEs) using symbolic methods (Laplace Transform or Classical methods).
  • Compute Fourier Series of any given function over a specified interval.
  • Plot solution graphs for ODEs and Fourier Series approximations.
  • Compare original functions with their Fourier Series approximation visually.

This tool is ideal for learning Mathematics III topics like Laplace Transform, Fourier Series, and ODEs interactively.


Features

1. Laplace Transform / ODE Solver

  • Enter ODEs using sympy syntax (e.g., Derivative(y(t),(t,2)) + 3*Derivative(y(t),t) + 2*y(t) - exp(-t)).
  • Provide initial conditions (e.g., y(0)=0, y'(0)=1).
  • Solve symbolically using sympy.dsolve.
  • Plot the solution graph.

2. Fourier Series Computation

  • Enter a function ( f(x) ) in sympy format (e.g., x**2).
  • Specify the interval [a,b] (e.g., -pi, pi) and number of terms N.
  • Compute Fourier coefficients ( a_n ) and ( b_n ) automatically.
  • Plot the Fourier series approximation alongside the original function.

3. Interactive GUI

  • Tabs for Laplace/ODE and Fourier Series.
  • Text areas for solution display.
  • Buttons for computing solutions and plotting graphs.

Installation

1. Clone the Repository

git clone https://github.com/prxcode/math-solver-studio.git
cd math-solver-studio

2. Create a Virtual Environment (Recommended)

python -m venv venv

Activate the environment:

  • Windows: venv\Scripts\activate
  • Linux / macOS: source venv/bin/activate

3. Install Dependencies

Dependencies are listed in requirements.txt. Use pip to install:

pip install -r requirements.txt

requirements.txt

sympy==1.12
matplotlib==3.7.2
numpy==1.25.0

Note: Tkinter is included with most Python distributions. On Linux, you may need:

sudo apt-get install python3-tk

Running the Application

After installing dependencies, run the main program:

python main.py
  • The GUI window will open.
  • Use the Laplace / ODE tab to solve differential equations.
  • Use the Fourier Series tab to compute series and plot approximations.

Usage

1. Laplace / ODE Tab

  • Enter the differential equation in sympy syntax.
  • Input initial conditions.
  • Click Solve ODE to compute the solution.
  • Click Plot Solution to visualize ( y(t) ).

2. Fourier Series Tab

  • Enter the function ( f(x) ) in sympy syntax.
  • Enter the interval [a,b] (e.g., -pi, pi).
  • Enter the number of terms N.
  • Click Compute Fourier Series to calculate coefficients.
  • Click Plot Fourier Series to visualize the approximation against the original function.

Dependencies

  • Python 3.8+
  • SymPy (symbolic computation)
  • NumPy (numerical operations)
  • Matplotlib (graph plotting)
  • Tkinter (GUI toolkit, usually included with Python)

Screenshot

Math Solver Studio Screenshot

About

Math Solver Studio is a Python-based GUI application for solving mathematical problems, including ordinary differential equations (ODEs) using Laplace transforms and Fourier series analysis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages