Skip to content

An interactive Python tool for Jupyter/Colab that computes and visualizes Jacobian matrices with heatmaps, leveraging NumPy and Matplotlib for dynamic insights into multivariable systems.

Notifications You must be signed in to change notification settings

LoQiseaking69/Jacobian-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Jacobian Calculator

This repository contains a Jacobian Calculator implemented in Python for use in Jupyter Notebooks or Google Colab. The calculator allows users to input functions, variables, and specific evaluation points to compute and visualize the Jacobian matrix.

Features

  • Calculation of the Jacobian matrix for a given set of functions and variables.
  • Visualization of the Jacobian matrix as a heatmap for easier interpretation.
  • Interactive input widgets for user-friendly operation.

Usage

To use the Jacobian Calculator:

  1. Open the Jacobian-Calculator.ipynb in Google Colab or a Jupyter environment.
  2. Enter your functions, variables, and the points of evaluation into the respective fields.
  3. Click the "Evaluate Jacobian" button to compute and display the Jacobian matrix and its heatmap visualization.

Input Fields

  • Functions: Enter the functions separated by semicolons.
  • Variables: Enter the variable names separated by commas.
  • Values: Enter the numerical values for the variables separated by commas.

Example

Here's an example of the calculator in use:

Jacobian Calculator Example

In this example, the functions x**2 + y**2 and exp(x) * sin(y) are evaluated at x = 1, y = π/4.

Requirements

  • Python 3.x
  • NumPy
  • Matplotlib
  • Seaborn
  • SymPy
  • TensorFlow (optional, for TensorFlow-compatible functions)
  • ipywidgets (for interactive input)

Installation


To open this project in an interactive environment with Google Colab, click the following button:

Open In Colab

You can clone this repository or download the .ipynb file directly to your local machine. If you're using Google Colab, you can open the notebook directly from GitHub or upload the .ipynb file.

Contributing

Contributions to the Jacobian Calculator are welcome! Please feel free to submit pull requests or open an issue if you have suggestions or find a bug.

License

This project is open-source and available under the MIT License.

About

An interactive Python tool for Jupyter/Colab that computes and visualizes Jacobian matrices with heatmaps, leveraging NumPy and Matplotlib for dynamic insights into multivariable systems.

Resources

Stars

Watchers

Forks

Packages

No packages published